Skip to content

Commit 40ea618

Browse files
committed
Added ldap role example
1 parent 7d0dacd commit 40ea618

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,32 @@ Connection details need to be set in the jaas.conf file
158158

159159
Administrators will be added as they are authenticated and profiles of systems may be assigned by full-privileged users.
160160

161+
User LDAP roles can be mapped to profiles defined in KeyBox through the use of the org.eclipse.jetty.jaas.spi.LdapLoginModule.
162+
163+
ldap-ol-with-roles {
164+
//openldap auth with roles that can map to profiles
165+
org.eclipse.jetty.jaas.spi.LdapLoginModule required
166+
debug="false"
167+
useLdaps="false"
168+
contextFactory="com.sun.jndi.ldap.LdapCtxFactory"
169+
hostname="<SERVER>"
170+
port="389"
171+
bindDn="<BIND-DN>"
172+
bindPassword="<BIND-DN PASSWORD>"
173+
authenticationMethod="simple"
174+
forceBindingLogin="true"
175+
userBaseDn="ou=users,dc=keybox,dc=com"
176+
userRdnAttribute="uid"
177+
userIdAttribute="uid"
178+
userPasswordAttribute="userPassword"
179+
userObjectClass="inetOrgPerson"
180+
roleBaseDn="ou=groups,dc=keybox,dc=com"
181+
roleNameAttribute="cn"
182+
roleMemberAttribute="member"
183+
roleObjectClass="groupOfNames";
184+
};
185+
186+
Users will be added/removed from defined profiles as they login and when the role name matches the profile name.
161187

162188
Auditing
163189
------

0 commit comments

Comments
 (0)