[Samba] small question howto get the OU Layout ( base )

L.P.H. van Belle belle at bazuin.nl
Fri May 2 09:00:46 MDT 2014


found it...  

ls /var/lib/samba/private/sam.ldb.d/ | egrep -v  "metadata|FORESTDNSZONES|DOMAINDNSZONES|SCHEMA|CONFIGURATION" | cut -d. -f1 

but thanks anyway ;-) 

Louis


>-----Oorspronkelijk bericht-----
>Van: belle at bazuin.nl [mailto:samba-bounces at lists.samba.org] 
>Namens L.P.H. van Belle
>Verzonden: vrijdag 2 mei 2014 16:39
>Aan: samba at lists.samba.org
>Onderwerp: [Samba] small question howto get the OU Layout ( base )
>
>Hai,
> 
>Just a small question, how can i get the OU layout of the base 
>with samba-tool or other tool. 
>I tried a lot but im not finding it. 
>or any other way is also ok, as long is i dont need to login 
>on windows ;-) 
> 
>my closeds was :  cat /etc/krb5.conf | grep default_realm | 
>cut -d= -f2 
>but that places a space in front and im not a scripting king :-/ 
> 
>What i need is the output like. 
> 
>DC=INTERNAL,DC=DOMAIN,DC=TLD 
> 
>I need it for my zarafa schema update script and my script 
>calls the zarafa_schema_add.sh ( version 1.5) 
>Works great, now i need to automate it with my main install 
>script. . ;-) 
> 
> 
>Greetz, 
> 
>Louis
> 
>-- 
>To unsubscribe from this list go to the following URL and read the
>instructions:  https://lists.samba.org/mailman/options/samba
>
>



More information about the samba mailing list