MCPcopy Index your code
hub / github.com/bugy/script-server / add_user

Method add_user

src/tests/auth_ldap_test.py:69–72  ·  view source on GitHub ↗
(self, cn, password, dn=None, **other_attributes)

Source from the content-addressed store, hash-verified

67 return self.authenticator.get_groups(username)
68
69 def add_user(self, cn, password, dn=None, **other_attributes):
70 if dn is None:
71 dn = self.to_user_dn(cn)
72 self.add_entry(dn, 'person', userPassword=password, **other_attributes)
73
74 def to_user_dn(self, cn):
75 prefix = 'cn=' + cn + ',cn=Users'

Calls 2

to_user_dnMethod · 0.95
add_entryMethod · 0.95

Tested by

no test coverage detected