Samba4: command to find base DN?

Matthieu Patou mat at samba.org
Thu Apr 19 12:35:30 MDT 2012


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



More information about the samba-technical mailing list