mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[doc] add validate_uniqueness section
This commit is contained in:
parent
5bb9e1e6ab
commit
66b4ef97a9
1 changed files with 20 additions and 0 deletions
20
doc/ldap.rst
20
doc/ldap.rst
|
@ -243,3 +243,23 @@ This is done this way:
|
|||
auth.update('uid=some_username,ou=users', {'attribute': 'new_value', ...})
|
||||
|
||||
Refer to the user schema to know which attributes you can modify.
|
||||
|
||||
Validate uniqueness
|
||||
===================
|
||||
|
||||
There is a method to validate the uniquess of some entry that is used during
|
||||
user creation. I haven't used it and I'm not sure on how it work.
|
||||
|
||||
Here is how it's used (I don't understand why a path is not provided):
|
||||
|
||||
::
|
||||
|
||||
# Validate uniqueness of username and mail in LDAP
|
||||
auth.validate_uniqueness({
|
||||
'uid': username,
|
||||
'mail': mail
|
||||
})
|
||||
|
||||
And here is its docstring:
|
||||
|
||||
.. automethod:: moulinette.authenticators.ldap.Authenticator.update
|
||||
|
|
Loading…
Reference in a new issue