How to write a PAM module which changes group membership?

本秂侑毒 提交于 2019-12-24 07:13:20

问题


pam_ldap, pam_kerberos, etc all allow the user to be dynamically added to a set of groups based on the data in ldap or kerberos respectively. However, when I look at the PAM documentation and every example I've found on a PAM module, its all purely authentication and has nothing to do with group membership.

Can anyone point me to what needs to be done to have my module change group membership?

Ideally, I'd love it if I could use this in conjunction with something like pam_exec.so, so I can write my code in any language of my choosing rather than C, but I'm open to any suggestion that will work here.

来源:https://stackoverflow.com/questions/39802215/how-to-write-a-pam-module-which-changes-group-membership

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!