10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
When I execute the code below with cn set to the $adgroup variable, I get the following error:
Invalid DN syntax (34)
Additional information: 0000208F: NameErr: DSID-031001F7, problem 2006 (BAD_NAME), data 8349, best match of:
,ou=Resource,ou=groups,dc=abc,dc=somecompany,dc=com'
If I set cn... (6 Replies)
Discussion started by: who10
6 Replies
2. UNIX for Beginners Questions & Answers
Using ldapsearch, I've built the following command to get what I need.
ldapsearch -x -LLL -E pr=200/noprompt -h abc-loc.somecompany.com -D "account@somecompany.com" -w password -b "ou=End Users,ou=Accounts,dc=abc,dc=somecompany,dc=com" -s sub '(distinguishedName=CN=Bob\\, Billy J,OU=End... (8 Replies)
Discussion started by: who10
8 Replies
3. UNIX for Dummies Questions & Answers
Never knew of this command ldapsearch, but I would like to use it to lookup a single user and return where their office is.
Is this possible?
I'm totally starting from scratch. I already saw some of the gurus say read the man page, which is pretty greek when you don't know the details of... (1 Reply)
Discussion started by: srhadden
1 Replies
4. Red Hat
Hi there everyone. I'm trying to make a bash script that accepts some arguments ans give's back some info about LDAP users and servers.
I have this function :
has_group_access(){
result=$(ldapsearch -LLL "cn=${GROUP_NAME}" cn member | cut -d"," -f1 | cut -d":" -f2 | cut -d"=" -f2 | grep... (1 Reply)
Discussion started by: theboogymaster
1 Replies
5. AIX
How can I do a ldapsearch to find a DN for a user when I know the exact cn for that user out of active directory.
I have tried several different commands (hundreds) but need the -b with the full dn to perform the search using ldapsearch from AIX. I am trying to find the OU for a user and the... (3 Replies)
Discussion started by: cchart3
3 Replies
6. Programming
Hi all,
I've been searching for ldapsearch function these few days. Still I couldn't found the solution.
I would like to translate this query
ldapsearch -x -LLL -h new_IP -p new_Port -D "cn=jw" -w "dummy" -b
"id=2311,o=WC,c=jp" -s sub
to ldap_search_ext_s() function in C program.
... (0 Replies)
Discussion started by: tailangong
0 Replies
7. UNIX for Advanced & Expert Users
Hi,
Is there way to count the number of results in the ldapsearch, looking at the manpages i dont see an option,
Using the following ldapsearch command to list attribute (User-Id=100) under my ObjectClass=my-Process, returns the entries matching the User-Id=100, and the problem i face here is... (0 Replies)
Discussion started by: ennstate
0 Replies
8. UNIX for Advanced & Expert Users
Hello all
I would like to know if it's possible to extract users from Active Directory and parse the output to obtain a XML file with specific format.
So the AD is a windows machine, and I would like to extract from a red hat linux serveur. I try ldapsearch command and ok I'm abble to extract... (5 Replies)
Discussion started by: ldiaz2106
5 Replies
9. UNIX for Dummies Questions & Answers
I have a script that iterates through all the users that have logged in to the system for the past day and pulls out their role(s), adding them to a file.
The iteration part is working just fine, but the issue I have is with the result. When I do the LDAP query, the results I get are:
... (2 Replies)
Discussion started by: a_calder
2 Replies
10. UNIX for Dummies Questions & Answers
We have an application that uses Active directory to authenticate the users. the admins of the app. were complaining because the windows domain controller they are going against is not very stable. I wrote a shell script using ldapsearch to look up a user against the domain controller their app... (2 Replies)
Discussion started by: jayjabour
2 Replies