Samba4.9 Openldap Syncpassword problem

Stefan Metzmacher metze at
Fri Apr 26 12:26:40 UTC 2019

Hi Izzet,

> #samba-tool user getpassword deneme --attributes=virtualCryptSHA256
> dn: CN=deneme,CN=Users,DC=test,DC=local
> virtualCryptSHA256:
> {CRYPT}$5$gLsOvhSnbEgEqGZO$YAlFzzFMBLpUGUImyI34vI7qP3wcvaM
>  3lj3FIcsMNy0
> Got password OK
> When i run syncpassword with my python code i see on my openldap server,
> userPassword is set
> like the following
> {CRYPT}$5$gLsOvhSnbEgEqGZO$YAlFzzFMBLpUGUImyI34vI7qP3wcvaM
> However, when i try to verify the password or login a ldapclient, the
> request returns wrong password.
> Where did i do wrong ? How can i change "password hash userPassword
> schemes" to SSHA.

It seems your sync script doesn't handle the LDIF line break,
you should have

instead of just

I hope that helps...


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the samba-technical mailing list