I'm trying to view all root names on a server that are available for searching thru/modifying. I've tried looking online-but I'm still unable to find the base levels. ldapsearch -b "o=blah.com" -p 1111 "objectclass=*" returns everything in that blah.com due to the filter being all object classes. Is there a similar function to be able to find all o=*? I need to able to search thru each of those directories and modify things at some point...and without knowing what's in there, i'm sort of at the mercy of the other developers....
相关问题
- Why should we check WIFEXITED after wait in order
- UNIX Bash - Removing double quotes from specific s
- PrincipalContext LDAPS Self-Signed Certificate
- Get all attributes from Active Directory using Spr
- Filter ldapsearch with awk/bash
相关文章
- getting user details from AD is slow
- Making new files automatically executable?
- Reverse four length of letters with sed in unix
- Extracting columns from text file using Perl one-l
- Problem with piping commands in C
- Can't get deleted items from OpenLDAP Server u
- Makefile and use of $$
- Convert ls output into csv
If the question is "How to get valid top-level base dn(s) ?", you have multiple options :
'host.example.com'
would give'dc=example,dc=com'
), but it is not guaranteed it results in a valid base dn.ldapsearch -H ldap://host.example.com -x -s base -b '' +
Then retrieve the
namingContexts
ordefaultNamingContext
attribute(s), any one of them can be used as a search base dn.objectClass: dcObject
(and optionnallyo=something
) : any corresponding entry can be used as a search base object by using its dn as the base dn.