Highlighted
Frequent Contributor.
Frequent Contributor.
304 views

uCMDB LDAP (Active Directory)

Hello.

made the following settings:

  1. Data Flow Probe Setup> LDAP prtocol. Added server Active Directory (connect successful )
  2. Adapter Manager>Package> Active_Directory
    • On the basis of LDAP_Active_Directory_Topology adapter set up your adapter.
    • in Discovered CITs added AdUser
    • Adapter Paremetrs added "BaseDn"  "CN=Users,DC=domain,DC=local"

 

How to get information about accounts and groups?

 

 

Tags (2)
0 Likes
1 Reply
Highlighted
Frequent Contributor.
Frequent Contributor.

added script using data collection (startDn,"(objectCategory=user)", ldapAttributes)
part script search users:
def GetUsers(Framework,client, startDn):
logger.debug("Find AD User In "+startDn)
userResultSet=client.executeQuery(startDn,"(objectCategory=user)",ldapAttributes)
while userResultSet.next():
employeeID=userResultSet.getString(attributeDict["ca_employee_id"])
if employeeID:
CreateEmpolyee(Framework,userResultSet)
else:
CreateExternalEmpolyee(Framework,userResultSet)

organizationUnits=GetOrganizationUnits(Framework,client, startDn)
for ou in organizationUnits:
GetUsers(Framework,client,ou)

userResultSet=client.executeQuery(startDn,"(objectCategory=user)",ldapAttributes) 

an error appears on this line:

File "v2" in GetUsers
NotFoundException: com.hp.ucmdb.discovery.library.clients.ldap.NotFoundException: No object found for name " OU=Users,DC=*,DC=sc,DC=local"

Сould you tell me please that need to change?

 

 

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.