forked from MarkUsProject/Markus
-
Notifications
You must be signed in to change notification settings - Fork 0
LDAP
Nelle Varoquaux edited this page Mar 1, 2011
·
1 revision
First, follow classical steps to install MarkUs in production mode. See [A System Administrator's Guide](wiki:InstallProdStable).
There is a very little program called ldap_synch_auth in lib/tools/ldap.
For using it, you will have to compile it.
Change ldap config in ldap_synch_auth.h, in particular
#define DC_COUNTRY "fr" #define DC_INSTITUTION "ec-nantes" #define OU "people" /* Specify the ldap database here. */ #define HOSTNAME "ldap.ec-nantes.fr" #define PORTNUMBER 389
Install ldap development packages
aptitude install libldap-dev
Compile it :)
make
Edit config/dummy_validate.sh
Comment or remove the 'exit 0' line call the C program and add this line
######################################################################## # Do your password validation here ######################################################################## printf "$user\n$password\n" | /you/path/to/ldap/program/ldap_synch_auth && exit 0 || exit 1 # Exit with 0 return code, if and only if user/password combination # is valid #exit 0