Hi,

I would recommend using the Active Directory Plugin instead of LDAP:
https://wiki.jenkins-ci.org/display/JENKINS/Active+Directory+Plugin

No configuration necessary. Worked like a charm for us.

Regards,
Eric


Von: [email protected] [mailto:[email protected]] 
Im Auftrag von g.fer.ordas
Gesendet: Donnerstag, 21. Mai 2015 07:09
An: [email protected]
Betreff: jenkins LDAP -- AD


Hi

I am trying to Use the LDAP plugin to connect to an AD Server

While I can easily run a ldapsearch against the server and I am trying to use 
the same parameters but it does not work.

Neither what is posted in the official page for the plugin



https://wiki.jenkins-ci.org/display/JENKINS/LDAP+Plugin





The extract of my current config is:


<securityRealm class="hudson.security.LDAPSecurityRealm" 
plugin="[email protected]<mailto:[email protected]>">
<server>awsdc1.company.com:389</server>
<rootDN>DC=company,DC=com</rootDN>
<inhibitInferRootDN>false</inhibitInferRootDN>
<userSearchBase>CN=Users,DC=company,DC=com</userSearchBase>
<userSearch>sAMAccountName={0}</userSearch>
<groupSearchBase>CN=Users,DC=company,DC=com</groupSearchBase>
<groupSearchFilter>{{(&amp; (cn={0}) (objectclass=group) ) 
}}</groupSearchFilter>
<groupMembershipStrategy 
class="jenkins.security.plugins.ldap.FromUserRecordLDAPGroupMembershipStrategy"/>
<managerDN>CN=ldapclient,CN=Users,DC=company,DC=com</managerDN>
<managerPasswordSecret>ewrewrewrwewerwerwerweer=</managerPasswordSecret>
<disableMailAddressResolver>false</disableMailAddressResolver>
<displayNameAttributeName>displayname</displayNameAttributeName>
<mailAddressAttributeName>mail</mailAddressAttributeName>
<userIdStrategy class="jenkins.model.IdStrategy$CaseInsensitive"/>
<groupIdStrategy class="jenkins.model.IdStrategy$CaseInsensitive"/>
</securityRealm>


Looking at the logs in jenkins I never get any error and for the defined logs 
in the GUI neither .

Any tips?

thanks!!

--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/215c0ec4-4799-4171-9920-e7bbf5377fd6%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/215c0ec4-4799-4171-9920-e7bbf5377fd6%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DDB06868916F0342A722619DC460E97B50CF0A29%40exch-bln01.
For more options, visit https://groups.google.com/d/optout.

Reply via email to