I'm getting this in the log:
Code: Select all
Feb 18 22:49:17 rpvh-servicedesk OTRS-CGI-37[1217]: [Notice][Kernel::System::Auth::LDAP::Auth] User: LFerguson (CN=Linwood Ferguson,OU=SpecialPurpose,DC=THEDOMAIN,DC=local) authentication ok (REMOTE_ADDR: 10.100.200.13).
Feb 18 22:49:17 rpvh-servicedesk OTRS-CGI-37[1217]: [Notice][Kernel::System::User::UserUpdate] User: 'Lferguson' updated successfully (1)!
Feb 18 22:49:17 rpvh-servicedesk OTRS-CGI-37[1217]: [Notice][Kernel::System::User::SetPassword] User: 'Lferguson' changed password successfully!
[b]Feb 18 22:49:17 rpvh-servicedesk OTRS-CGI-37[1217]: [Error][Kernel::System::Auth::Sync::LDAP::Sync][Line:604]: Search failed! (CN=Domain Admins,OU=Users,DC=THEDOMAIN,DC=local) filter='(member=CN=Linwood Ferguson,OU=SpecialPurpose,DC=THEDOMAIN,DC=local)' 0000208D: NameErr: DSID-0310020A, problem 2001 (NO_OBJECT), data 0, best match of:#012#011'DC=THEDOMAIN,DC=local'[/b]
Code: Select all
$Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host'} = 'rpvh-dc1.THEDOMAIN.local';
$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'dc=THEDOMAIN,dc=local';
$Self->{'AuthSyncModule::LDAP::UID'} = 'SAMAccountName';
$Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'CN=Linwood Ferguson,OU=SpecialPurpose,DC=THEDOMAIN,DC=local';
$Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'THEPASSWORD';
$Self->{'AuthSyncModule::LDAP::GroupDN'} = 'cn=OTRS Agents,ou=SpecialPurpose,dc=THEDOMAIN,dc=local';
$Self->{'AuthSyncModule::LDAP::AccessAttr'} = 'member';
$Self->{'AuthSyncModule::LDAP::UserAttr'} = 'DN';
$Self->{'AuthSyncModule::LDAP::UserSyncInitialGroups'} = [
'users',
];
$Self->{UserSyncLDAPGroups} = [
'users',
];
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};
$Self->{'AuthSyncModule::LDAP::UserSyncRolesDefinition'} = {
'CN=Domain Admins,OU=Users,DC=THEDOMAIN,DC=local' => {
'Test' => 1,
},
};
I've experimented with all sorts of variations based on prior postings. There may be just some silly typo above, but I can't see it.
I've read every posting I can find, including the ldap debugging one (but mostly ldap is working for me).
I'm using my own domain admin as the search user/password (for now) to ensure there are no permission issues.
I've tried reproducing this with ldapsearch and I guess in a sense I did -- if I use (member=cn=...) as above in the log it doesn't find the group (specified by -b) but I'm not sure if it is supposed to or not, I've only searched in the past with memberof.
I would much appreciate it if someone could give me a pointer. It's so close to working!!