davideuler / gitblit

Automatically exported from code.google.com/p/gitblit
Apache License 2.0
0 stars 0 forks source link

LDAP Auth not working (invalid credentials) #543

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download gitblit 
2. Configure ldap settings as explained on the webpage
3. Start gitblit and try to login

What is the expected output?
The user should be logged in

What do you see instead?
An error "Invalid username or password!" is displayed on the webpage. 
There are not error messages in the console. 

What version of the product are you using? On what operating system?
GitBlit 1.6.2

Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:    14.04
Codename:   trust

Please provide any additional information below.

Config:

realm.authenticationProviders =ldap
realm.passwordStorage = md5
realm.minPasswordLength = 5
realm.container.autoCreateAccounts = false
realm.windows.allowGuests = false
realm.windows.permitBuiltInAdministrators = true
realm.windows.defaultDomain =
realm.pam.serviceName = system-auth
realm.htpasswd.userfile = ${baseFolder}/htpasswd
realm.ldap.server = ldap://ldap.xxx.com.ar:389
realm.ldap.username = uid=repo-git,ou=Users,dc=xxx,dc=com,dc=ar
realm.ldap.password = xxxxx
realm.ldap.bindpattern = CN=${username},OU=Users,DC=xxx,DC=com,DC=ar
realm.ldap.maintainTeams = false
realm.ldap.accountBase = OU=Users,DC=xxxx,DC=com,DC=ar
realm.ldap.accountPattern = (&(objectClass=person)(sAMAccountName=${username}))
realm.ldap.groupBase = OU=Groups,DC=xxxx,DC=com,DC=ar
realm.ldap.groupMemberPattern = (&(objectClass=group)(member=${dn}))
realm.ldap.groupEmptyMemberPattern = (&(objectClass=group)(!(member=*)))
realm.ldap.admins = @Users
realm.ldap.displayName = displayName
realm.ldap.email = email
realm.ldap.uid = uid
realm.ldap.synchronize = true
realm.ldap.syncPeriod = 1 MINUTES
realm.ldap.removeDeletedUsers = true
~                                                                               

~                                                                               

Original issue reported on code.google.com by cristia...@gmail.com on 29 Dec 2014 at 6:49

GoogleCodeExporter commented 9 years ago
Please, close this issue as it was an issue with the domain controller. Sorry 
for the inconvenience.

Original comment by cristia...@gmail.com on 30 Dec 2014 at 4:43

GoogleCodeExporter commented 9 years ago
Great.  I meant to comment that these kind of questions are best for the 
mailing list.

Original comment by James.Mo...@gmail.com on 30 Dec 2014 at 4:49