Skip to content

A Linux PAM module to authenticate users against an LDAP server via binding login

License

Notifications You must be signed in to change notification settings

robot-dot-win/pam_ldapbind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

$ gcc pam_ldapbind.c -o pam_ldapbind.so -shared -fPIC -lpam -lldap -Wno-implicit-function-declaration

USAGE

pam_ldapbind.so <ldap_uri>

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.

About

A Linux PAM module to authenticate users against an LDAP server via binding login

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages