aboutsummaryrefslogtreecommitdiff
path: root/admin.go
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-14 21:58:34 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-14 21:58:34 +0100
commit151a31a4250cde38d8a66f2bfc8390f8132dc552 (patch)
tree5a5b775b4657e5d0ab44ac6f84e10b55d984bba2 /admin.go
parent768f2de9162bbf3fd0a1005554f3fd595818f1b3 (diff)
downloadguichet-151a31a4250cde38d8a66f2bfc8390f8132dc552.tar.gz
guichet-151a31a4250cde38d8a66f2bfc8390f8132dc552.zip
Invitation mechanism with codes etc
Diffstat (limited to 'admin.go')
-rw-r--r--admin.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin.go b/admin.go
index a0c33a6..0f78bd7 100644
--- a/admin.go
+++ b/admin.go
@@ -600,9 +600,9 @@ func handleAdminCreate(w http.ResponseWriter, r *http.Request) {
} else {
dn := data.IdType + "=" + data.IdValue + "," + super_dn
req := ldap.NewAddRequest(dn, nil)
- req.Attribute("objectClass", object_class)
+ req.Attribute("objectclass", object_class)
if data.StructuralObjectClass != "" {
- req.Attribute("structuralObjectClass", []string{data.StructuralObjectClass})
+ req.Attribute("structuralobjectclass", []string{data.StructuralObjectClass})
}
if data.DisplayName != "" {
req.Attribute("displayname", []string{data.DisplayName})