[Samba] Samba and LDAP Server

David Roid
2011-12-22T18:15:07Z

Hello Lantukh,

Domain controller, LDAP server and kdc can be found by DNS, Samba consults
DNS server to find them. Therefore DNS server itself can be a single-point.
I'm guessing your myserver1 is used as the DNS server in this case and when
it's down you are in trouble.

Cheers
-David

2011/12/23 Lantukh Sergey <sergey.lantukh at docpath.com>

> Good day
> I could not find an answer to my problem/question, can you help me here...
>
> I have SAMBA 3.2.5 on Linux\Debian 5
> I using Winbind for connect to MS Active Directory Windows 2003 and get
> a list of all users.
>
> /etc/samba/smb.conf
> [global]
> realm = MYDOMAIN.LOCAL
> Security = ADS
>
> /etc/krb5.con
> [realms]
> MYDOMAIN.LOCAL = {
>         kdc = myserver1.mydomain.local: 88
>         kdc = myserver2.mydomain.local: 88
>         admin_server = myserver1.mydomain.local: 464
>         default_domain = DOCPATH.ES
> [domain_realm]
>         . mydomain.local = MYDOMAIN.LOCAL
>         mydomain.local = MYDOMAIN.LOCAL
>
> My question is:
> When I give the command:
> # net ads info
> I have:
> LDAP server: 192.168.1.10
> LDAP server name: myserver1.mydomain.local
> Realm: MYDOMAIN.local
> Bind Path: dc = MYDOMAIN, dc = LOCAL
> LDAP port: 389
> Server time: Thu, 22 Dec 2011 17:52:38 CET
> KDC server: 192.168.1.10
> Server time offset: 2
>
> 192.168.1.10 this is myserver1.mydomain.local
>
> Where SAMBA knows about my LDAP server?
>
> I have 2 Domain Controllers and SAMBA is always connected to the first.
> When the first server is not available SAMBA can not get a list of users
> via winbind. How can I get SAMBA to connect to a second domain
> controller? How can I change the LDAP server for samba?
>
> Thanks!
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>