[Samba] Samba python connect using ldaps

Rowland Penny rpenny at samba.org
Wed Mar 30 15:12:12 UTC 2022


On Wed, 2022-03-30 at 11:04 -0300, Thiago Luiz Parolin via samba wrote:
> Hi,
> I am trying to connect to our samba4 AD DS server (zentyal) using
> ldaps://
> and python code like:
> 
> lp = LoadParm()
> creds = Credentials()
> creds.guess(lp)
> creds.set_username('myuser')
> creds.set_password('mypass')
> url_server = 'ldaps://myserver.mycompany.com:636'

You use port 389 and it changes to 636, but I suggest you use kerberos
instead, it is more secure.

Rowland





More information about the samba mailing list