Adtool - "Invalid credentials" when LDAP to Active Directory
Running Lucid server edition
And trying to connect to my AD Domain Controller. Want to be able to automate user creation and deletion from a linux server using adtool and bash (i hate vbs)
The problem is; I keep getting "Invalid Credentials" every time I try to use adtool for some action.. Cant even adtool list "ou=Users"
This is error message:
Code:
bind: : Invalid credentials (49)
additional info: 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece
This is my setup:
Admin username: adminuser
Admin password: adminpassword (yeah right )
/etc/adtool.cfg:
Code:
uri ldap://myserver.foo.com
binddn cn=adminuser,cn=Users,dc=foo,dc=com
bindpw adminpassword
searchbase dc=myserver,dc=foo,dc=com
/etc/ldap/ldap.conf:
Code:
BASE dc=myserver,dc=foo,dc=com
URI ldap://myserver.foo.com ldaps://myserver.foo.com
TLS_REQCERT allow
in adtool I do try to change between ldap and ldaps, but neither work..
and ports open on server:
636/tcp open ldapssl
389/tcp open ldap
(linux server is already a a part of the domain and can talk with AD trough winbind and kerberos,, so there is maybe a easier way than adtool+ldap to administer users? I can list users in AD using winbind and "kinit adminuser" works without errors )
Any ideas? Please help
Bookmarks