Step 4 in the documentation for configuring an ldap authenticator is incomplete.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Step 4 in the documentation for configuring an ldap authenticator is incomplete.

L1 Bithead

Here is the link to the documentation I am using: https://docs.cyberark.com/conjur-open-source/latest/en/content/integrations/ldap/configure-ldap-authn.htm#Add

How do I configure the policy to pull the ldap groups?

10 REPLIES 10

L7 Applicator

Hi @Robert Mroczka​ 

 

In order to map an external LDAP group to an internal Conjur group for authorization is to use ! grant policy that specifies the ! ldap-group keyword as the member.

 

Hope it helps!

L4 Transporter

hi @Robert Mroczka​ 

 

Have you already defined a policy to map an LDAP group(s) to a Conjur role?

Have you added them as members via LDAP group mapping and configured the LDAP group(s) to Conjur groups mapping in your authentication logic?

If so, the mentioned example in the docs should work. 

Have you faced any specific errors?

L1 Bithead

Sorry for not including the second (grant) part of the policy as that is the one that is failing with the error message mentioned below. Here it is:

 

- !grant

  role: !group my-ldap-server/conjur-users

  member: !group /conjur-users

 

How does this configuration alone provide the necessary configuration to inform conjur what the search base is for the OU the group is in in the LDAP tree? Also, there are different types of group objects in LDAP. How does this configuration work when the group in question is of type objectclass groupOfUniqueNames where uniqueMember is the attribute in LDAP defining membership?

L1 Bithead

The specific error from the attempt to load the grant policy is:

Error: 422 Unprocessable Content. Group ''conjur-users'' not found in 

account

        ''myConjurAccount''

L1 Bithead

The policy that was successfully loaded prior to the grant policy is the following:

- !policy

  id: my-ldap-server

  body:

  - !host

  - !webservice

    owner: !host

    annotations:

      ldap-authn/base_dn: ou=people,dc=mydomain,dc=com

      ldap-authn/bind_dn: cn=conjur,ou=people,dc=mydomain,dc=com

      ldap-authn/connect_type: tls

      ldap-authn/host: myldaphost

      ldap-authn/port: 636

      ldap-authn/filter_template: (&(objectClass=person)(uid=%s))

 

  - !group conjur-users

 

  - !permit

    role: !group conjur-users

    privilege: [ read, authenticate ]

    resource: !webservice

 

  - !variable

    id: bind-password

    owner: !host

 

  - !variable

    id: tls-ca-cert

    owner: !host

The error "422 Unprocessable Content. Group ''conjur-users'' not found in account 'myConjurAccount'" indicates that Conjur can't find the group "conjur-users" at the absolute path specified in your grant policy

 

However, based on your grant policy previously loaded successfully, it created a group "my-ldap-server/conjur-users"

 

- !policy

 id: my-ldap-server

 body:

 ..........

 - !group conjur-users

 ..........

 

Can you try to specify the exact group name created earlier in your second (grant) part of the policy and check the outcome?

 

- !grant

 role: !group my-ldap-server/conjur-users

 member: !group my-ldap-server/conjur-users

 

I made the suggested change but I received the same error when attempting to apply the policy. I'm not sure if you saw my earlier post above. This configuration does not include information Conjur would need to locate the group in the LDAP tree. The search base configured for the people objects for authentication does not contain the groups required for the authorization. Is the member value supposed to provide the full LDAP DN of the group?

L1 Bithead

I have LDAP authentication working at this point but in order for LDAP groups to work they would need to be synchronized to Conjur to make them into Conjur groups and available in policy. I understand that a synch mechanism was supported at one time and that it was deprecated/removed. Am I correct in my understanding that in order for authorization to work with LDAP groups a synchronization process would be required?

Is the something you are asking for described in the docs below?

 

https://docs.cyberark.com/conjur-enterprise/latest/en/content/integrations/ldap/ldap-sync-authn-integration.htm

L1 Bithead

The referenced link has this information:

 

LDAP authentication does not eliminate the requirement to add user accounts into Conjur. For each LDAP user that needs access to Conjur, there must be a corresponding user account declared in a security policy in Conjur. Conjur user accounts are required to manage the RBAC authorization model on Conjur resources. The Conjur authorization model permits users (or more typically, groups of users) to access and update Conjur resources.

 

How do I get the users and groups into Conjur so they can be used/referenced in the grant statements?

  • 177 Views
  • 10 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!