Add config option to control if gecos field gets set https://github.com/webmin/webmin/issues/130

This commit is contained in:
Jamie Cameron
2014-01-30 11:06:35 -08:00
parent 8583362737
commit 17e1a98591
17 changed files with 17 additions and 1 deletions

View File

@ -20,3 +20,4 @@ person=1
given_order=0
imap_foldersep=.
ldap_tls=0
gecos=1

View File

@ -21,3 +21,4 @@ given_order=0
imap_foldersep=.
ldap_tls=0
membox=0
gecos=1

View File

@ -20,3 +20,4 @@ given_order=0
imap_foldersep=.
ldap_tls=0
membox=0
gecos=1

View File

@ -20,3 +20,4 @@ given_order=0
imap_foldersep=.
ldap_tls=0
membox=0
gecos=1

View File

@ -20,3 +20,4 @@ given_order=0
imap_foldersep=.
ldap_tls=0
membox=0
gecos=1

View File

@ -20,3 +20,4 @@ given_order=0
imap_foldersep=.
ldap_tls=0
membox=0
gecos=1

View File

@ -26,3 +26,4 @@ given_order=0
imap_foldersep=.
ldap_tls=0
membox=0
gecos=1

View File

@ -21,3 +21,4 @@ given_order=0
imap_foldersep=.
ldap_tls=0
membox=0
gecos=1

View File

@ -20,3 +20,4 @@ given_order=0
imap_foldersep=.
ldap_tls=0
membox=0
gecos=1

View File

@ -20,3 +20,4 @@ given_order=0
imap_foldersep=.
ldap_tls=0
membox=0
gecos=1

View File

@ -20,3 +20,4 @@ given_order=0
imap_foldersep=.
ldap_tls=0
membox=0
gecos=1

View File

@ -20,3 +20,4 @@ given_order=0
imap_foldersep=.
ldap_tls=0
membox=0
gecos=1

View File

@ -20,3 +20,4 @@ given_order=0
imap_foldersep=.
ldap_tls=0
membox=0
gecos=1

View File

@ -20,3 +20,4 @@ given_order=0
imap_foldersep=.
ldap_tls=0
membox=0
gecos=1

View File

@ -20,3 +20,4 @@ given_order=0
imap_foldersep=.
ldap_tls=0
membox=0
gecos=1

View File

@ -23,6 +23,7 @@ group_fields=Extra LDAP group properties to allow editing of<br>(In <i>fieldname
multi_fields=Allow multiple values for extra properties?,1,1-Yes,0-No
noclash=Attributes for which duplicates are disallowed,0
person=Give all Unix users the <tt>person</tt> object class?,1,1-Yes,0-No
gecos=Set <tt>gecos</tt> attribute to match real name?,1,1-Yes,0-No
user_filter=Additional LDAP filter for users,3,None,,,,Attribute=value
group_filter=Additional LDAP filter for groups,3,None,,,,Attribute=value

View File

@ -817,7 +817,7 @@ if ($config{'given'}) {
push(@classes, $config{'given_class'});
}
}
if (&in_schema($schema, "gecos")) {
if (&in_schema($schema, "gecos") && $config{'gecos'}) {
push(@props, "gecos", &remove_accents($in{'real'}));
}
}