LDAP: Customer User Backend

Hello,
I try to use an existing ldap tree (exchange directory), but the field stay
empty, and I have the following error in the syslog file:
Apr 1 11:19:15 maild OTRS-CGI-10[16680]: [Error][Kernel::System::CustomerUser::
LDAP::CustomerSearch][Line:136]: No such object
I add the following line in my config.pm file:
$Self->{CustomerUser} = {
Name => 'LDAP Source',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
# ldap host
Host => 'vinci.comareg',
BaseDN => 'ou=groupe',
SSCOPE => 'sub',
UserDN => '',
UserPw => '',
},
# customer uniq id
CustomerKey => 'uid',
# customer #
CustomerID => 'mail',
CustomerUserListFields => ['uid', 'cn', 'mail'],
CustomerUserSearchFields => ['uid', 'cn', 'mail'],
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
Map => [
[ 'UserLogin', 'Login', 'uid', 1, 1, 'var' ],
[ 'UserEmail', 'Email', 'mail', 1, 1, 'var' ],
[ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var' ],
[ 'UserPhone', 'Phone', 'telephoneNumber', 1, 0, 'var' ],
[ 'UserAddress', 'Address', 'postalAddress', 1, 0, 'var' ],
],
};
When I do an ldap request with ldapsearch, everything is correct:
ldapsearch -h myhost -b "o=groupe" -s sub "(uid=firstname.name)" -x
# extended LDIF
#
# LDAPv3
# base

On Thursday, April 01, 2004 2:38 PM
denis.pers@free.fr
Apr 1 11:19:15 maild OTRS-CGI-10[16680]: [Error][Kernel::System::CustomerUser:: LDAP::CustomerSearch][Line:136]: No such object
It seems, LDAP doesn't find a thing.
BaseDN => 'ou=groupe',
Are you sure this is correct?
UserDN => '', UserPw => '',
Are you sure an anonymous user is allowed to read from Exchange's LDAP?
When I do an ldap request with ldapsearch, everything is correct: result: 0 Success
It seems again, LDAP doesn't find a thing, so it's not "correct". hth, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388

Quoting Robert Kehl
On Thursday, April 01, 2004 2:38 PM denis.pers@free.fr
wrote: Apr 1 11:19:15 maild OTRS-CGI-10[16680]: [Error][Kernel::System::CustomerUser:: LDAP::CustomerSearch][Line:136]: No such object
It seems, LDAP doesn't find a thing.
YES, but what?
BaseDN => 'ou=groupe',
Are you sure this is correct?
YES, it's right.
UserDN => '', UserPw => '',
Are you sure an anonymous user is allowed to read from Exchange's LDAP?
When I do an ldap request with ldapsearch, everything is correct: result: 0 Success
It seems again, LDAP doesn't find a thing, so it's not "correct".
In fact I didn't copy all the lines of the result, but the output seems ok:
[root@maild Standard]# ldapsearch -h vinci -b "o=groupe" -s sub "(uid=gil.....)" -x
# extended LDIF
#
# LDAPv3
# base
hth,
Robert Kehl
-- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388 _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/
So, I would like to know which is the request sents to ldap directory? Does it use SASL? thanks, Denis

On Friday, April 02, 2004 4:51 PM
denis.pers@free.fr
UserDN => '', UserPw => '',
Are you sure an anonymous user is allowed to read from Exchange's LDAP?
Repeating the above. Can it be the anonymous user has no permission to read from the tree? I cannot imagine Exchange giving away it's information for free Does it work if you insert a user that is allowed to?
So, I would like to know which is the request sents to ldap directory? Does it use SASL?
No, it doesn't. The LDAP directory is searched using Net::LDAP. Best wishes, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388

Quoting Robert Kehl
On Thursday, April 01, 2004 2:38 PM denis.pers@free.fr
wrote: Apr 1 11:19:15 maild OTRS-CGI-10[16680]: [Error][Kernel::System::CustomerUser:: LDAP::CustomerSearch][Line:136]: No such object
It seems, LDAP doesn't find a thing.
BaseDN => 'ou=groupe',
Are you sure this is correct?
UserDN => '', UserPw => '',
Are you sure an anonymous user is allowed to read from Exchange's LDAP?
When I do an ldap request with ldapsearch, everything is correct: result: 0 Success
It seems again, LDAP doesn't find a thing, so it's not "correct".
hth,
Robert Kehl
-- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388 _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/
Thanks for your help, I've done an error in my config file: BaseDN => 'ou=groupe', And it is BaseDN => 'o=groupe', Regards.
participants (2)
-
denis.pers@free.fr
-
Robert Kehl