已经决定用PAM去做用户验证了.
2010/11/23 Guannan Ma <myth...@gmail.com> > 换个问法? 是不是ldap这块肯定走的是pam? > 我看了下 我的ubuntu是走的pam > 那nis用户呢? > > > 2010/11/22 Guannan Ma <myth...@gmail.com> > > Hi, all >> >> 请教大家以下关于取得当前用户信息的问题. >> >> [1] 通过passwd.h 里面的函数 我可以取到用户的信息, 包括我的ldap存储的用户信息, 存储在structure passwd里面 >> >> passwd: ldap compat >> group: ldap compat >> shadow: ldap compat >> >> 其中取到的密码是 '*' 因为安全原因 >> 用shadow.h 里面的getspnam 可以取到local 用户的密码散列值, 但是ldap上的用户取不到 我su >> xxx_ldap的时候可以正常过去 >> 貌似su 使用pam实现的. >> >> [2] 我的问题是哪些函数能取到这些值? 谢谢. >> >> >> >> >> -- >> Regards, >> Guannan >> >> > > > -- > Regards, > Guannan > > -- Regards, Guannan -------------- 下一部分 -------------- 一个HTML附件被移除... URL: https://lists.ubuntu.com/archives/ubuntu-zh/attachments/20101125/60c9e0b1/attachment.htm -- ubuntu-zh mailing list ubuntu-zh@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh