Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuring Nexus LDAP on Mac OS X

Got Nexus installed, looks really nice.

The LDAP configuration is done in 2 parts. In the top half of the page, you provide the domain information and creds, etc., for authentication, then the bottom half is about user mapping.

I finally got the authentication to succeed. However, the user mapping is failing. I am getting the error:

There is an error communicating with the server.
LDAP Realm is not configured correctly: Failed to retrieve ldap information for users.
Nexus returned an error: ERROR 400: Bad Request

The curious thing is the only thing you really have to set at the bottom is the ou. I have that set to users. I read the docs and verified that the ou should not be in the search base above (dn) and I also noted that the successful auth (CRAM-MD5) is in the logs on the server.

like image 439
Rob Avatar asked Nov 26 '25 09:11

Rob


1 Answers

Fixed this. Turns out that Open Directory does not use ou. Changing the Base DN to cn=users and Base DN = cn=groups. It works now. (Guess no one else is using Nexus on a mac mini server.)

For groups, I found these settings work:

Group Type: Static groups
Base DN: cn=groups
Groups Subtree: false
Object Class: posixGroup
Group ID Attribute: cn
Group Member Attribute: memberUid
Group Member Format: ${username}

You can find the keywords by testing with

ldapsearch -x -LLL -h <domain.name> -b "cn=groups,dc=<domain>,dc=<name>" 
like image 147
Rob Avatar answered Nov 29 '25 11:11

Rob



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!