LDAP User Import
I don't have any experience at all with LDAP, so I need help.
I was able to setup an LDAP query for an Admin group - so I can sucessfully connect to my AD.
I don't have any security groups that include all users (or are unique), so I could like to query User OUs to import the users into the Helpdesk.
Here's my LDAP search...
Search Base DN: DC=mydomain,DC=com
Search Filter: (|(memberOf=OU=Location1 Users)(memberOf=OU=Location2 Users))
My Result returned is: No Matching Entries Found
I found this KB article, but I think the syntax is wrong (extra parentheses).
http://www.kace.com/support/kb/index.php?action=artikel&cat=55&id=998&artlang=en
I was able to setup an LDAP query for an Admin group - so I can sucessfully connect to my AD.
I don't have any security groups that include all users (or are unique), so I could like to query User OUs to import the users into the Helpdesk.
Here's my LDAP search...
Search Base DN: DC=mydomain,DC=com
Search Filter: (|(memberOf=OU=Location1 Users)(memberOf=OU=Location2 Users))
My Result returned is: No Matching Entries Found
I found this KB article, but I think the syntax is wrong (extra parentheses).
http://www.kace.com/support/kb/index.php?action=artikel&cat=55&id=998&artlang=en
0 Comments
[ + ] Show comments
Answers (9)
Please log in to answer
Posted by:
dchristian
12 years ago
Posted by:
scottlutz
12 years ago
David: I have found that it both can and can't work, and this is completely dependent on what is at the end of the "memberOf" string.
baist111: you will have to make sure that you are using the full Distinguished Name of the group you are trying to query, so instead of "Location2 Users", you will want to use "memberOf=OU=support,DC=kace,DC=com"
baist111: you will have to make sure that you are using the full Distinguished Name of the group you are trying to query, so instead of "Location2 Users", you will want to use "memberOf=OU=support,DC=kace,DC=com"
Posted by:
dchristian
12 years ago
Really?
I don't see how.
When looking at the memberof attribute (i use adexploer) there is no reference to the DN.
Is Kace doing something special that makes this work?
I don't see how.
When looking at the memberof attribute (i use adexploer) there is no reference to the DN.
Is Kace doing something special that makes this work?
Posted by:
baist111
12 years ago
I also tried using (memberOf=OU=Location1 Users,DC=mydomain,DC=com) as the Search Filter without the OR statement, that didn't return any results either.
So...
I ended up changing my search base to OU=Location1 Users,DC=mydomain,DC=com & changed the Search Filter to (sAMAccountName=*). That returned the results that I needed, and I was able to import the users manually. (But this only works for 1 OU of users, not all of them).
I would like to set this up on a schedule though, and have it update/import users as they are added.
Does the above information help?
So...
I ended up changing my search base to OU=Location1 Users,DC=mydomain,DC=com & changed the Search Filter to (sAMAccountName=*). That returned the results that I needed, and I was able to import the users manually. (But this only works for 1 OU of users, not all of them).
I would like to set this up on a schedule though, and have it update/import users as they are added.
Does the above information help?
Posted by:
scottlutz
12 years ago
Posted by:
dchristian
12 years ago
Posted by:
baist111
12 years ago
Posted by:
scottlutz
12 years ago
Posted by:
baist111
12 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.