# pam_ldapbind **Repository Path**: robot-dot-win/pam_ldapbind ## Basic Information - **Project Name**: pam_ldapbind - **Description**: 一个Linux PAM模块,通过bind方式登录LDAP服务器来完成用户认证 - **Primary Language**: C - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-10-25 - **Last Updated**: 2024-04-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## DESCRIPTION pam_ldapbind is a Linux PAM module which provides a way to authenticate users against an LDAP server via binding login. On success it returns PAM_SUCCESS, otherwise it returns PAM_AUTH_ERR, PAM_SERVICE_ERR, PAM_BUF_ERR or PAM_PERM_DENIED. No credentials are awarded by this module. ## BUILD The source program is a single C99(and newer) file. Requires: pam-devel, openldap-devel ```bash $ gcc pam_ldapbind.c -o pam_ldapbind.so -shared -fPIC -lpam -lldap -Wno-implicit-function-declaration ``` ## USAGE ``` pam_ldapbind.so ``` Example: ``` auth required pam_ldapbind.so ldaps://ldap.company1.com ``` or ``` auth required pam_ldapbind.so ldaps://ldap.company2.com:637 ``` ## LICENSE pam_ldapbind is licensed under the [GPLv3](LICENSE) license.