[389-users] get base dn from ldapsearch

Andrey Ivanov andrey.ivanov at polytechnique.fr
Wed Nov 24 08:07:55 UTC 2010


Hi,

yes, you need to make a search like this :

ldapsearch -x -h ldap-test.example.com -b "" -s base namingContexts
# extended LDIF
#
# LDAPv3
# base <> with scope baseObject
# filter: (objectclass=*)
# requesting: namingContexts
#

#
dn:
namingContexts: dc=example,dc=com
namingContexts: o=netscaperoot

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

@+

2010/11/24 Angel Bosch Mora <angbosch at conselldemallorca.net>:
> hi,
>
> not specifically 389 related but:
>
> is there a way to guess default base dn for clients (the one configured in /etc/openldap/ldap.conf) with ldapsearch?
>
> i've tried with -v, -n and -d but i only get the server, not the base.
>
> regards,
>
> abosch
> --
> 389 users mailing list
> 389-users at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-users
>



More information about the 389-users mailing list