[Samba] small question howto get the OU Layout ( base )
Rowland Penny
rowlandpenny at googlemail.com
Fri May 2 09:29:51 MDT 2014
On 02/05/14 16:00, L.P.H. van Belle wrote:
> 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
>>
>>
Hi Louis, you might be better with something like this:
_NET=$(which net)
SUFFIX=$($_NET ads info | grep 'Bind Path' | awk '{print $NF}')
Rowland
More information about the samba
mailing list