Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | only working services for the moment are: gitlab and osqa | Nico von Geyso | 2012-09-29 | 1 | -2/+2 |
| | |||||
* | added possibility to delete service passwords | Nico von Geyso | 2012-09-28 | 1 | -7/+17 |
| | |||||
* | Add script to create accounts (for usernames that are in the blacklist) | Marian Sigler | 2012-09-28 | 1 | -1/+12 |
| | |||||
* | move ldap settings from account.py to config | Marian Sigler | 2012-09-28 | 1 | -4/+0 |
| | |||||
* | create servicePassword ldap object if it does not already exist | Marian Sigler | 2012-09-28 | 1 | -1/+6 |
| | |||||
* | account: only update password as admin when explicitly requested | Marian Sigler | 2012-09-26 | 1 | -7/+9 |
| | |||||
* | added missing ou entry | Nico von Geyso | 2012-09-26 | 1 | -1/+1 |
| | |||||
* | added InvalidPasswordError Exception | Nico von Geyso | 2012-09-26 | 1 | -1/+5 |
| | |||||
* | account: fix delete() | Marian Sigler | 2012-09-26 | 1 | -3/+2 |
| | |||||
* | Merge branch 'master' of ssh://git.spline.de/account-web | Nico von Geyso | 2012-09-26 | 1 | -4/+5 |
|\ | | | | | | | | | Conflicts: account.py | ||||
| * | add get_by_uid | Marian Sigler | 2012-09-26 | 1 | -4/+14 |
| | | |||||
* | | added escape method and use it nearly everywhere. good old paranoia | Nico von Geyso | 2012-09-26 | 1 | -27/+66 |
|/ | |||||
* | account.py: Fix find(); Add get_by_uid() | Marian Sigler | 2012-09-26 | 1 | -1/+17 |
| | |||||
* | add a Service() class to have more data about the services | Marian Sigler | 2012-09-26 | 1 | -5/+11 |
| | |||||
* | fixed password bug for register() | Nico von Geyso | 2012-09-25 | 1 | -2/+2 |
| | |||||
* | wildcards for find() are by default off | Nico von Geyso | 2012-09-25 | 1 | -6/+13 |
| | | | | To use wildcards you have to use find(..., wildcard=True) otherwise the wildcard gets escaped. | ||||
* | Merge branch 'master' of ssh://git.spline.de/account-web | Nico von Geyso | 2012-09-24 | 1 | -2/+2 |
|\ | |||||
| * | templates/_macros: move errors in own macro | Marian Sigler | 2012-09-24 | 1 | -1/+1 |
| | | |||||
| * | indentation | Marian Sigler | 2012-09-24 | 1 | -1/+1 |
| | | |||||
* | | use passwd_s for password changes | Nico von Geyso | 2012-09-24 | 1 | -16/+27 |
|/ | | | | | with modify_s passwords will be saved in plain text (base64 encoded). To prevent this security issue we use passwd_s instead of modify_s. | ||||
* | find() now uses dict instead of ldap search str | Nico von Geyso | 2012-09-23 | 1 | -7/+24 |
| | | | | | | | examples: service.find() # find all users service.find_by_uid('test') # find users by uid service.find_by_mail('test@test.de') # find users by mail | ||||
* | account: remove delete by string for the time being | Marian Sigler | 2012-09-21 | 1 | -12/+12 |
| | | | | | That functionality requires searching through the subtree for services to be deleted etc. | ||||
* | account: don't fail on unicode input strings. Update examples | Marian Sigler | 2012-09-21 | 1 | -8/+14 |
| | |||||
* | AccountService.delete: check for basestring not .dn | Marian Sigler | 2012-09-21 | 1 | -4/+5 |
| | |||||
* | AccountService: expect admin credentials at initialization. | Marian Sigler | 2012-09-21 | 1 | -32/+32 |
| | | | | | This makes it possible to call the methods (find, register, etc) without specifying the admin credentials each time again. | ||||
* | Merge branch 'master' of ssh://git.spline.de/account-web | Marian Sigler | 2012-09-21 | 1 | -5/+4 |
|\ | |||||
| * | fixed _alter_passwords() | Nico von Geyso | 2012-09-21 | 1 | -5/+4 |
| | | |||||
* | | change Account.__repr__ | Marian Sigler | 2012-09-21 | 1 | -2/+2 |
|/ | |||||
* | Updated AccountService API | Nico von Geyso | 2012-09-20 | 1 | -62/+146 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AccountService is now stateless. That means every request needs its own authentication request (bind). Usage examples: * register a new user >> service = AccountService(LDAP_HOST, LDAP_BASE_DN,SERVICES) >> foo = Account('foo','foo@bar.de', password='bar') >> service.register(foo, LDAP_ADMIN_USER, LDAP_ADMIN_PASS) * authenticate a new user >> service = AccountService(LDAP_HOST, LDAP_BASE_DN,SERVICES) >> foo = service.auth('foo', 'bar') * updates an account >> foo.change_mail('a@b.de') >> foo.change_password('bar2') # changes root password >> foo.change_password('bar2', 'gitlab') # changes password for gitlab >> service.update(foo) # save changes in ldap backend # save changes in ldap backend as admin user >> service.update(foo, LDAP_ADMIN_USER, LDAP_ADMIN_USER) * delete an account >> service = AccountService(LDAP_HOST, LDAP_BASE_DN,SERVICES) >> service.delete(Account) >> service.delete('foo') * find accounts >> service = AccountService(LDAP_HOST, LDAP_BASE_DN,SERVICES) >> all_accounts = service.find(LDAP_ADMIN_USER, LDAP_ADMIN_PASS) >> print([x.uid for x in all_accounts]) | ||||
* | added basic account service functionality | Nico von Geyso | 2012-09-17 | 1 | -79/+148 |
| | | | | | | | | | | | | | | | | | | | To auth, register, update or delete an account you have to use the AccountService class. A basic usage could be the following: # Simple auth service = AccountService(LDAP_HOST, LDAP_BASE_DN, LDAP_ADMIN_USER, LDAP_ADMIN_PASS) acc = service.auth('test', 'secret') # Authenticate against some credentials print('Mail: %s' % acc.mail) # Account creation, updating and deletion a = Account('foo', 'foo@bar.de', password='foobar') service.register(a) # create a.mail = 'bar@foo.de' service.update(a) # update service.delete(a.uid) # deletete | ||||
* | added rudimentary ldap account class | Nico von Geyso | 2012-09-14 | 1 | -20/+57 |
| | |||||
* | first pieces of code | Marian Sigler | 2012-09-13 | 1 | -0/+47 |