aboutsummaryrefslogtreecommitdiff
path: root/admin.go
diff options
context:
space:
mode:
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})