LDAP command line search.
Hi,
I need to use command line some thing like Code:
ldapserarch -x -b < dc object etc> But I have no idea what "dc" "dn" to use for my search. I can see how users/group are setup from novell web interface. Any ideas? Thanks |
You can start by running:
Code:
ldapsearch -x -b 'dc=domain,dc=com' '(objectclass=*)' Code:
ldapsearch -x -D "cn=admin,dc=domain,dc=com" -W 'dc=domain,dc=com' '(objectclass=*)' Both will return all the existing entries. If you want to search something specific use the results of the previous commands as attributes reference. For example if you want to find all uids and email addresses you can run: Code:
ldapsearch -x -b 'dc=domain,dc=com' '(objectclass=*)' uid mail |
All times are GMT -5. The time now is 08:22 PM. |