On 04/19/2012 11:28 AM, steve wrote: > Hi > Is there a simple Linux command to get the base DN? i.e. just the > dc=foo,dc=bar,dc=com > part. Without grep-ing and sed-ing? > > Cheers, > Steve > ldbsearch -H ldap://127.0.0.1 -s base -b "" defaultNamingContext Matthieu. -- Matthieu Patou Samba Team http://samba.org