Skip to content

Commit 59be088

Browse files
committed
Updated
1 parent 97a73d6 commit 59be088

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pkg/ldap/manager.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,12 +656,16 @@ func (manager *Manager) CreateUser(ctx context.Context, user string, attrs url.V
656656
}
657657

658658
// TODO: Uid
659+
// objectClass is posixAccount and uidNumber is set, then ignore
660+
// objectClass is posixAccount and uidNumber is not set, then set to next available uid
661+
// this comes from cn=maxID or cn=lastUID attribute serialNumber
662+
// or from sorting the uidNumber attribute
659663
fmt.Println(absdn, object)
664+
// TODO: Groups?
665+
// TODO: Increment the lastUID
660666

661667
// Create the user
662668
return manager.Create(ctx, absdn.String(), object.Values)
663-
664-
// TODO: Groups
665669
}
666670

667671
/*

0 commit comments

Comments
 (0)