Unable to authenticate to Windows LDAP: Invalid Credentials

219 views
Skip to first unread message

timonoj

unread,
Jan 22, 2015, 9:28:08 PM1/22/15
to sea...@googlegroups.com

Hi guys,

I'm trying to test the pro version of the server, so far it seems to be up and running fine (on Ubuntu headless server 64bit 14.10). However my next step was to connect it to a testing DC running Win2008R2.
The DC has the company domain as testing.org.au. The OU for the users is the default "Users", and the administrator account is testadmin. The DC is located at 10.180.14.21.
Here's my ccnet.conf:
[LDAP]
HOST = ldap://10.180.14.21/
BASE = dc=users,dc=testing,dc=org,dc=au
USER_DN = test...@testing.org.au #cn=testadmin,dc=users,dc=testing,dc=org,dc=au # or use ad...@example.local etc
PASSWORD = admin123
LOGIN_ATTR = userPrincipalName

This testadmin user exists on the DC but not on the mysql database. I assumed once it logged in, it would download it, so I didn't want to have a duplicate. The admin for seafile is the user "sea...@differentdomain.com".

Whenever I try to start the server, I get the invalid credentials error:
seafserver@Seafile:/seafile$ ./seafile-server-latest/seafile.sh start

** Message: seafile-controller.c(1067): loading seafdav config from /seafile/conf/seafdav.conf

[01/23/15 09:59:50] user-mgr.c(260): ldap_bind failed: Invalid credentials.
[01/23/15 09:59:50] user-mgr.c(99): Failed to get user number from LDAP.
failed to run "ccnet-server -t"


Any suggestions on how to troubleshoot this? Thanks a lot!

JiaQiang Xu

unread,
Jan 22, 2015, 9:37:21 PM1/22/15
to sea...@googlegroups.com
You BASE may be wrong.
I guess it should be cn=users,dc=testing,dc=org,dc=au for Active Directory.
Message has been deleted

timonoj

unread,
Jan 22, 2015, 11:17:10 PM1/22/15
to sea...@googlegroups.com
Sorry for the deleted post, I forgot to uncomment a line and was giving me weirder errors.
So, changed to BASE = cn=users,dc=testing,dc=org,dc=au
But still I get the same error.

timonoj

unread,
Jan 23, 2015, 12:43:14 AM1/23/15
to sea...@googlegroups.com
OK, clearly a noob error. I made several comments with # at ccnet.conf. Seems ccnet.conf doesn't take comments. My bad.
It seems it works now! Thanks for your fast reply, will start testing it now.

Gerards

unread,
Sep 27, 2015, 4:48:48 PM9/27/15
to seafile
Haai,

Can you show your working config,

This config:

[LDAP]
HOST = ldap://172.16.161.167
BASE = ou=users,dc=isgreat,dc=local
USER_DN = cn=sa_seafile,dc=isgreat,dc=local
PASSWORD = secret
LOGIN_ATTR = mail


Gives me this error
user-mgr.c(276): ldap_bind failed: Invalid credentials.


Kind Regards
Gerard

Op vrijdag 23 januari 2015 03:28:08 UTC+1 schreef timonoj:
Reply all
Reply to author
Forward
0 new messages