歡迎您光臨本站 註冊首頁

openldap 用戶修改密碼后就無法驗證了。

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

openldap 用戶修改密碼后就無法驗證了。

我是源碼編譯的,版本是20080813。  
用戶的lidif為

dn: cn=squallhu,ou=UNIX,ou=IT,dc=squallhu,dc=com
objectclass: account
objectclass: posixAccount
objectclass: shadowAccount
cn: squallhu
uid: squallhu
shadowLastChange: 11108
shadowMax: 99999
shadowWarning: 7
shadowFlag: 0
loginShell: /bin/bash
uidNumber: 10000
gidNumber: 10000
homeDirectory: /home/squallhu
gecos: Squall Hu
userPassword: {MD5}WOCPH3/qwAnltI1Jg47IdA==


然後該用戶在client用密碼登錄,可以登錄。
然後我用 passwd 命令來修改密碼。

Changing password for user squallhu.
Enter login(LDAP) password:
New UNIX password:
Retype new UNIX password:
LDAP password information changed for squallhu
passwd: all authentication tokens updated successfully.

顯示修改成功了,然後退出重新登錄,就無法登錄了。

slapd.conf里我也已經設置了access,允許修改自己的密碼。

有哪位大牛知道原因嗎?
謝謝!
《解決方案》

你改的是操作系統用戶的密碼
不是ldap用戶的密碼

登陸操作系統要用ldap嗎?
《解決方案》

謝謝樓上的回答。
我的目的是通過ldap來集中管理用戶帳號信息。當然密碼我可以通過ldap的server端來修改,但是每個user總想有自己的密碼。 難道他們修改自己的密碼也要用ldapmodify去修改?
《解決方案》

我也遇到相同問題,請問你最後有解決嗎?
《解決方案》

很想知道,樓主這個問題,怎麼解決
《解決方案》

passwd: option requires an argument -- r
usage:
        passwd [-r files | -r nis | -r nisplus | -r ldap]
        passwd [-r files] [-egh]
        passwd [-r files] -sa
        passwd [-r files] -s
        passwd [-r files] [-d|-l|-N|-u] [-f] [-n min] [-w warn] [-x max] name
        passwd -r nis [-eg]
        passwd -r nisplus [-egh] [-D domainname]
        passwd -r nisplus -sa
        passwd -r nisplus [-D domainname] -s
        passwd -r nisplus [-D domainname] [-l|-N|-u] [-f] [-n min] [-w warn]
                [-x max] name
        passwd -r ldap [-egh]

樓主有沒有試過「passwd -r ldap XX」來改呢?

[火星人 ] openldap 用戶修改密碼后就無法驗證了。已經有512次圍觀

http://coctec.com/docs/service/show-post-16075.html