But the conversion is not happening
I want to
nickname and
telephoneNumber and others be converted
ldap config
authentication = 'ldap2' -- Indicate that we want to use LDAP for authentication
--storage = 'ldap'
ldap = {
hostname = '', -- LDAP server location
--use_tls = true,
bind_dn = '', -- Bind DN for LDAP authentication (optional if anonymous bind is supported)
bind_password = '', -- Bind password (optional if anonymous bind is supported)
user = {
basedn = '',
filter = '(&(objectClass=user)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))',
usernamefield = 'sAMAccountName',
namefield = 'cn',
},
groups = {
basedn = '', -- The base DN where group records can be found
memberfield = 'member', -- The field that contains user ID records for this group (each member must have a corresponding entry under the user basedn with the same value in usernamefield)
namefield = 'cn', -- The field that contains the group's name (used for matching groups in LDAP to group definitions below)
-- {
-- name = 'everyone', -- The group name that will be seen in users' rosters
-- cn = 'Everyone', -- This field's key *must* match ldap.groups.namefield! It's the name of the LDAP group this definition represents
-- admin = false, -- (Optional) A boolean flag that indicates whether members of this group should be considered administrators.
-- },
{
name = 'admin',
cn = '',
admin = true,
},
},
vcard_format = {
displayname = 'cn', -- Consult the vCard configuration section in the README
nickname = 'displayNamePrintable',
-- photo = {
-- type = 'image/jpeg',
-- binval = 'jpegPhoto',
-- },
telephone = {
work = {
voice = true,
number = 'telephoneNumber',
},
},
},
Then in virtual host config
storage = {
roster = "ldap";
vcard = "ldap";
}