Hello,
I'm trying to retrieve Full Name and email from LDAP server, email comes ok, but can't see fullname.
cacti 1.2.8 LDAP novell (now microfocus?) eDirectory.
In Cacti Configuration->Settings->Autentication "LDAP CN Settings" I have:
Full name: "fullname"
Email: "mail"
If I do test with ldapsearch i seem to get both fullname and mail.
ldapsearch -H ldaps://ldap.mycompany.org:636 -x -D "cn=E9871982949E,ou=EMP,o=PA" -w xxx -b "ou=EMP,o=PA" -s sub -a always "(cn=E9871982949E)" fullname mail
# extended LDIF
#
# LDAPv3
# base <ou=EMP,o=PA> with scope subtree
# filter: (cn=E9871982949E)
# requesting: fullname mail
#
# E9871982949E, EMP, PA
dn: cn=E9871982949E,ou=EMP,o=PA
mail: NAME.SURNAME1SURNAME2@mycompany.org
fullname: NAME SURNAME1 SURNAME2
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
cacti related log entries:
2020/02/20 10:14:37 - AUTH LDAP_SEARCH: Authentication Success, DN: cn=E9871982949E,ou=EMP,o=PA
2020/02/20 10:14:37 - AUTH LOGIN: LDAP User 'E9871982949E' Authenticated
2020/02/20 10:14:37 - AUTH NOTE: User 'E9871982949E' does not exist, copying template user
2020/02/20 10:14:37 - DBCALL DEVEL: SQL Save on table 'user_auth': 'a:25:{s:2:"id";i:0;s:8:"username";s:10:"E9871982949E";s:8:"password";i:6490807;s:5:"realm";i:3;s:9:"full_name";s:0:"";s:13:"email_address";s:34:"NAME.SURNAME1SURNAME2@mycompany.org";s:20:"must_change_password";s:2:"on";s:15:"password_change";s:2:"on";s:9:"show_tree";s:2:"on";s:9:"show_list";s:2:"on";s:12:"show_preview";s:2:"on";s:14:"graph_settings";s:2:"on";s:10:"login_opts";s:1:"2";s:13:"policy_graphs";s:1:"1";s:12:"policy_trees";s:1:"1";s:12:"policy_hosts";s:1:"1";s:22:"policy_graph_templates";s:1:"1";s:7:"enabled";s:2:"on";s:10:"lastchange";s:2:"-1";s:9:"lastlogin";s:2:"-1";s:16:"password_history";s:2:"-1";s:6:"locked";s:0:"";s:15:"failed_attempts";s:1:"0";s:8:"lastfail";s:1:"0";s:11:"reset_perms";s:10:"1627465006";}'
Thanks
LDAP Full name retrieval not working (email is working)
Moderators: Developers, Moderators
-
- Posts: 40
- Joined: Mon Jan 28, 2008 4:11 am
Who is online
Users browsing this forum: No registered users and 5 guests