Authentication

From imdb
Jump to: navigation, search

LDAP

The UiB LDAP server can be reached on ldaps://ldap.ha.uib.no:636


ldapsearch -x uid=<brukernavn> # Tests anonymous binding against the server set up in /etc/openldap/ldap.conf
ldapsearch -X -D <brukernavn> -W uid=<brukernavn> # Tests binding the user with password against the ldap server.

Check if user is member of imdb group

ldapsearch -x "(&(cn=imdb)(nisNetgroupTriple=\(,$USER,\)))"