Authentication

From imdb
Revision as of 15:10, 22 October 2015 by Bjo013 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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,\)))"