I have another LDAP which I cannot modify since it is monitored and under special supervision and is part of certification, so it must be untouched so I cannot add iRedMail schemas.... but in that ldap are all users (I work at colledge .... cca 350 employees and cca 10000 students).
I sync users in that LDAP with LDAP from iredmail using cron job (I post stript in topic Sync mail users with another LDAP server
In attachments is .LDIF exports for user "test123@efzg.hr" with password "Test123." (dot at the end)
One is with SSHA password created with iRedAdmin, ... and another is with same password but with SHA password....
Exports are from old server (iRedMail 0.8.7 and iRedAdminPro 2.1.2).
Mail is working with both passwords ... If user is admin it can login to old iRedAdmin Pro 2.1.2 .... (iRedMail 0.8.7)
On new server with iRedMail 0.9.0 and iRedAdmin Pro 2.2.1 mail is working with both passwords, ... but iRedAdminPro with SHA password give "Error: Username or password is incorrect." so only postmaster can login to Pro panel .... no any other users and also no any other admin cannot login.
Old server is with CentOS6 and new one is with CentOS7
and here is ldapsearch with SSHA
[root@iredmail ~]# ldapsearch -H ldap://172.16.0.105:389 -x -D "cn=Manager,dc=efzg,dc=hr" -w "password_hidden" -b "dc=efzg,dc=hr" uid=test123 "uid" "userPassword" "givenName" "sn"
# extended LDIF
#
# LDAPv3
# base <dc=efzg,dc=hr> with scope subtree
# filter: uid=test123
# requesting: uid userPassword givenName sn
#
# test123@efzg.hr, Users, efzg.hr, domains, efzg.hr
dn: mail=test123@efzg.hr,ou=Users,domainName=efzg.hr,o=domains,dc=efzg,dc=hr
userPassword:: e1NTSEF9MTJoUkY3QlpEQ2UxdnNkM21YOXFyMlBrSCtXK0kyRU9YRXhsM0E9PQ=
=
sn: test123
uid: test123
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
[root@iredmail ~]# ldapsearch -H ldap://172.16.0.105:389 -x -D "cn=Manager,dc=efzg,dc=hr" -w "password_hidden" -b "dc=efzg,dc=hr" uid=test123 "uid" "userPassword" "givenName" "sn" | perl -MMIME::Base64 -MEncode=decode -n -00 -e 's/\n +//g;s/(?<=:: )(\S+)/decode("UTF-8",decode_base64($1))/eg;binmode(STDOUT, ":utf8");print'
# extended LDIF
#
# LDAPv3
# base <dc=efzg,dc=hr> with scope subtree
# filter: uid=test123
# requesting: uid userPassword givenName sn
#
# test123@efzg.hr, Users, efzg.hr, domains, efzg.hr
dn: mail=test123@efzg.hr,ou=Users,domainName=efzg.hr,o=domains,dc=efzg,dc=hr
userPassword:: {SSHA}12hRF7BZDCe1vsd3mX9qr2PkH+W+I2EOXExl3A==
sn: test123
uid: test123
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
And here is same data but with SHA password
[root@iredmail ~]# ldapsearch -H ldap://172.16.0.105:389 -x -D "cn=Manager,dc=efzg,dc=hr" -w "password_hidden" -b "dc=efzg,dc=hr" uid=test123 "uid" "userPassword" "givenName" "sn"
# extended LDIF
#
# LDAPv3
# base <dc=efzg,dc=hr> with scope subtree
# filter: uid=test123
# requesting: uid userPassword givenName sn
#
# test123@efzg.hr, Users, efzg.hr, domains, efzg.hr
dn: mail=test123@efzg.hr,ou=Users,domainName=efzg.hr,o=domains,dc=efzg,dc=hr
sn: test123
uid: test123
userPassword:: e3NoYX0wK0J3MHlxR3BzS3IrL2I0aVZLT1ZxUFpuWXc9
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
[root@iredmail ~]# ldapsearch -H ldap://172.16.0.105:389 -x -D "cn=Manager,dc=efzg,dc=hr" -w "password_hidden" -b "dc=efzg,dc=hr" uid=test123 "uid" "userPassword" "givenName" "sn" | perl -MMIME::Base64 -MEncode=decode -n -00 -e 's/\n +//g;s/(?<=:: )(\S+)/decode("UTF-8",decode_base64($1))/eg;binmode(STDOUT, ":utf8");print'
# extended LDIF
#
# LDAPv3
# base <dc=efzg,dc=hr> with scope subtree
# filter: uid=test123
# requesting: uid userPassword givenName sn
#
# test123@efzg.hr, Users, efzg.hr, domains, efzg.hr
dn: mail=test123@efzg.hr,ou=Users,domainName=efzg.hr,o=domains,dc=efzg,dc=hr
sn: test123
uid: test123
userPassword:: {sha}0+Bw0yqGpsKr+/b4iVKOVqPZnYw=
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
Post's attachmentstest123_SHA.ldif 1.18 kb, file has never been downloaded.
test123_SSHA.ldif 1.2 kb, file has never been downloaded.
You don't have the permssions to download the attachments of this post.