forked from Deuxfleurs/bottin
Modify initial administrator account to include displayname attribute
This commit is contained in:
parent
0402f7806a
commit
8e819b7d5c
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -295,7 +295,8 @@ func (server *Server) init() error {
|
||||||
admin_dn := "cn=admin," + server.config.Suffix
|
admin_dn := "cn=admin," + server.config.Suffix
|
||||||
admin_attributes := Entry{
|
admin_attributes := Entry{
|
||||||
"objectClass": []string{"simpleSecurityObject", "organizationalRole"},
|
"objectClass": []string{"simpleSecurityObject", "organizationalRole"},
|
||||||
"description": []string{"LDAP administrator"},
|
"displayname": []string{"LDAP administrator"},
|
||||||
|
"description": []string{"Administrator account automatically created by Bottin"},
|
||||||
"cn": []string{"admin"},
|
"cn": []string{"admin"},
|
||||||
"structuralObjectClass": []string{"organizationalRole"},
|
"structuralObjectClass": []string{"organizationalRole"},
|
||||||
ATTR_USERPASSWORD: []string{admin_pass_hash},
|
ATTR_USERPASSWORD: []string{admin_pass_hash},
|
||||||
|
|
Loading…
Reference in a new issue