aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-10 11:37:39 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-10 11:37:39 +0100
commit8e819b7d5c1b749590ea791c25f85b7e95914e67 (patch)
treee7ba2ae399fe5442d7be8566e21ed5dc2b36bb7c
parent0402f7806a1e216f150d004d16823cbc73880fc4 (diff)
downloadbottin-8e819b7d5c1b749590ea791c25f85b7e95914e67.tar.gz
bottin-8e819b7d5c1b749590ea791c25f85b7e95914e67.zip
Modify initial administrator account to include displayname attribute
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index a9b8031..975311d 100644
--- a/main.go
+++ b/main.go
@@ -295,7 +295,8 @@ func (server *Server) init() error {
admin_dn := "cn=admin," + server.config.Suffix
admin_attributes := Entry{
"objectClass": []string{"simpleSecurityObject", "organizationalRole"},
- "description": []string{"LDAP administrator"},
+ "displayname": []string{"LDAP administrator"},
+ "description": []string{"Administrator account automatically created by Bottin"},
"cn": []string{"admin"},
"structuralObjectClass": []string{"organizationalRole"},
ATTR_USERPASSWORD: []string{admin_pass_hash},