Commit a9615dd8 authored by ale's avatar ale

Add the investiciUser objectClass to user objects

parent 470df2e3
Pipeline #1526 passed with stages
in 1 minute and 41 seconds
......@@ -149,7 +149,7 @@ func newUser(entry *ldap.Entry) (*as.RawUser, error) {
func userToLDAP(user *as.User) (attrs []ldap.PartialAttribute) {
// Most attributes are read-only and have specialized methods to set them.
attrs = append(attrs, []ldap.PartialAttribute{
{Type: "objectClass", Vals: []string{"top", "person", "posixAccount", "shadowAccount", "organizationalPerson", "inetOrgPerson", "totpAccount"}},
{Type: "objectClass", Vals: []string{"top", "person", "posixAccount", "shadowAccount", "organizationalPerson", "inetOrgPerson", "investiciUser"}},
{Type: "uid", Vals: s2l(user.Name)},
{Type: "cn", Vals: s2l(user.Name)},
{Type: uidNumberLDAPAttr, Vals: s2l(strconv.Itoa(user.UID))},
......
......@@ -6,6 +6,7 @@ objectClass: posixAccount
objectClass: shadowAccount
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: investiciUser
loginShell: /bin/false
uidNumber: 19475
shadowMax: 99999
......
......@@ -11,6 +11,7 @@ objectClass: posixAccount
objectClass: shadowAccount
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: investiciUser
shadowLastChange: 12345
shadowMax: 99999
shadowWarning: 7
......
......@@ -6,6 +6,7 @@ objectClass: posixAccount
objectClass: shadowAccount
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: investiciUser
loginShell: /bin/false
uidNumber: 19475
shadowMax: 99999
......
......@@ -11,6 +11,7 @@ objectClass: posixAccount
objectClass: shadowAccount
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: investiciUser
shadowLastChange: 12345
shadowMax: 99999
shadowWarning: 7
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment