Hi Guys,
I really need help. I wasn't using rundeck before so I had to google a lot of stuff
I've setup rundeck (3.0.2.) with LDAP authentication.
The authentication against LDAP is working. So I'm able to login with my user which got the group rundeck_admins.
I also have a group rundeck_users but at the moment there is no user assigned to this group.
The user which has the rundeck_admins group assigned can't see anything on the dashboard (
You have no authorized access to projects.Contact your administrator. (User roles: ROLE_username, ROLE_user))
service.log says
DEBUG --- [tp1823752147-24] ailsUsernamePasswordAuthenticationFilter : Authentication success. Updating SecurityContextHolder to contain: org.springframework.security.authentication.jaas.JaasAuthenticationToken@e34f0ec4: Principal: username; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@3bcc: RemoteIpAddress: 10.8.0.242; SessionId: null; Granted Authorities: Jaas Authority [ROLE_user,user], Jaas Authority [ROLE_username,username]
my jaas-ldap.conf
ldap {
com.dtolabs.rundeck.jetty.jaas.JettyCachingLdapLoginModule required
debug="true"
contextFactory="com.sun.jndi.ldap.LdapCtxFactory"
bindPassword="passwd"
authenticationMethod="simple"
forceBindingLogin="true"
userBaseDn="ou=x,dc=y,dc=z,dc=de"
userRdnAttribute="sAMAccountName"
userIdAttribute="sAMAccountName"
userPasswordAttribute="unicodePwd"
userObjectClass="user"
roleBaseDn="ou=Groups,dc=y,dc=z,dc=de"
roleNameAttribute="cn"
roleUsernameMemberAttribute="member"
roleMemberAttribute="uniqueMember"
roleObjectClass="groupOfUniqueMember"
cacheDurationMillis="300000"
supplementalRoles="user"
reportStatistics="true"
timeoutRead="10000"
timeoutConnect="20000"
nestedGroups="true";
};
I've two aclpolicys named rundeck_admins and rundeck_users with the correct groups
description: Admin, all access.
context:
application: 'rundeck'
for:
resource:
- allow: '*' # allow create of projects
project:
- allow: '*' # allow view/admin of all projects
by:
group: admin
description: Full access.
context:
project: '.*' # all projects
for:
resource:
- allow: '*' # allow read/create all kinds
adhoc:
- allow: '*' # allow read/running/killing adhoc jobs
job:
- allow: '*' # allow read/write/delete/run/kill of all jobs
node:
- allow: '*' # allow read/run for all nodes
by:
group: rundeck_admins
---
description: Admin, all access.
context:
application: 'rundeck'
for:
resource:
- allow: '*' # allow create of projects
project:
- allow: '*' # allow view/admin of all projects
by:
group: rundeck_admins
My web.xml (I'm not sure if rundeck is using it in this version. I saw nothing about this in the documentation)
<security-role>
<role-name>rundeck_admins</role-name>
</security-role>
<security-role>
<role-name>rundeck_users</role-name>
</security-role>
I hope these information helps to find the problem.
If you need any further information don't hesitate to ask me.
Thanks in advance