Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | Warn users not to enter valuable passwords (because of osqa etc) | Marian Sigler | 2012-09-24 | 1 | -0/+1 | |
| | | | ||||||
| * | | Add `logout_required; Add bootstrap for forms | Marian Sigler | 2012-09-24 | 10 | -45/+125 | |
| | | | ||||||
| * | | settings: start with service management | Marian Sigler | 2012-09-21 | 3 | -7/+16 | |
| | | | ||||||
* | | | 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 | |||||
* | Send verify mail on change of mail address | Marian Sigler | 2012-09-21 | 5 | -20/+65 | |
| | ||||||
* | add color to flashes | Marian Sigler | 2012-09-21 | 3 | -6/+28 | |
| | ||||||
* | use img instead of background-image | Nico von Geyso | 2012-09-21 | 2 | -6/+2 | |
| | ||||||
* | fixed path for logo | Nico von Geyso | 2012-09-21 | 1 | -1/+1 | |
| | ||||||
* | added spline logogit status111 | Nico von Geyso | 2012-09-21 | 3 | -1/+19 | |
| | ||||||
* | Add confirmation to registration. | Marian Sigler | 2012-09-21 | 6 | -23/+115 | |
| | | | | | | First, only ask for username and email, then send out a confirmation mail. When the link therein is clicked, ask for a password and create the account in LDAP. | |||||
* | utils: use flask.current_app to avoid circular import | Marian Sigler | 2012-09-21 | 1 | -8/+6 | |
| | ||||||
* | add send_mail function | Marian Sigler | 2012-09-21 | 2 | -1/+25 | |
| | ||||||
* | 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. | |||||
* | add functions to create confirmation links | Marian Sigler | 2012-09-21 | 1 | -1/+36 | |
| | ||||||
* | Merge branch 'master' of ssh://git.spline.de/account-web | Marian Sigler | 2012-09-21 | 1 | -0/+3 | |
|\ | ||||||
| * | contrib/munin: add relative import | Alexander Sulfrian | 2012-09-21 | 1 | -0/+3 | |
| | | ||||||
* | | basic settings (yet without confirmation mail on mail change etc) | Marian Sigler | 2012-09-21 | 6 | -13/+49 | |
| | | ||||||
* | | account: don't fail on unicode input strings. Update examples | Marian Sigler | 2012-09-21 | 1 | -8/+14 | |
|/ | ||||||
* | Merge branch 'master' of ssh://git.spline.de/account-web | Marian Sigler | 2012-09-21 | 1 | -0/+1 | |
|\ | ||||||
| * | Merge branch 'master' of ssh://git.spline.de/account-web | Alexander Sulfrian | 2012-09-21 | 4 | -42/+59 | |
| |\ | | | | | | | | | | | | | | | | * 'master' of ssh://git.spline.de/account-web: use AccountService AccountService: expect admin credentials at initialization. | |||||
| * | | forms: add mail to RegisterForm | Alexander Sulfrian | 2012-09-21 | 1 | -0/+1 | |
| | | | ||||||
* | | | AccountService.delete: check for basestring not .dn | Marian Sigler | 2012-09-21 | 1 | -4/+5 | |
| |/ |/| | ||||||
* | | Merge branch 'master' of ssh://git.spline.de/account-web | Marian Sigler | 2012-09-21 | 2 | -0/+1 | |
|\| | ||||||
| * | requirements: add pycrypto | Alexander Sulfrian | 2012-09-21 | 1 | -0/+1 | |
| | | ||||||
| * | contrib/munin: moved script | Alexander Sulfrian | 2012-09-21 | 1 | -0/+0 | |
| | | ||||||
* | | use AccountService | Marian Sigler | 2012-09-21 | 3 | -10/+27 | |
| | | | | | | | | | | Add it to the request context (as `g.ldap`); Use it for login; Connect to ldap on request startup and store the user object as `g.user`. | |||||
* | | 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 | |
| | | ||||||
* | | Merge branch 'master' of ssh://git.spline.de/account-web | Marian Sigler | 2012-09-21 | 2 | -62/+160 | |
|\| | ||||||
| * | Added basic munin plugin | Nico von Geyso | 2012-09-20 | 1 | -0/+14 | |
| | | | | | | | | With this plugin its easy to monitor the amounts of accounts over time | |||||
| * | 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]) | |||||
* | | start with settings page | Marian Sigler | 2012-09-21 | 4 | -15/+62 | |
| | | ||||||
* | | Use Flask-WTForms because it adds CSRF protection | Marian Sigler | 2012-09-21 | 4 | -8/+18 | |
| | | ||||||
* | | add the flaskext_compat module | Marian Sigler | 2012-09-21 | 2 | -0/+129 | |
|/ | | | | | | This is needed because changed the paths of flask extensions. flaskext_compat makes sure they can be imported both the old and new way. | |||||
* | Merge branch 'master' of ssh://git.spline.de/account-web | Marian Sigler | 2012-09-19 | 2 | -0/+15 | |
|\ | ||||||
| * | contrib/ldap: add schema for servicePassword | Alexander Sulfrian | 2012-09-19 | 2 | -0/+15 | |
| | | ||||||
* | | login works now. | Marian Sigler | 2012-09-19 | 7 | -18/+86 | |
| | | ||||||
* | | intermediate commit before I remove flask-login again | Marian Sigler | 2012-09-19 | 7 | -9/+66 | |
|/ | ||||||
* | Merge branch 'master' of ssh://git.spline.de/account-web | Nico von Geyso | 2012-09-17 | 8 | -3/+115 | |
|\ | ||||||
| * | first web stuff | Marian Sigler | 2012-09-14 | 8 | -3/+115 | |
| | | ||||||
* | | proper syntax for pip | Nico von Geyso | 2012-09-17 | 1 | -2/+2 | |
| | | ||||||
* | | 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 | |
| | ||||||
* | added env dir | Nico von Geyso | 2012-09-14 | 1 | -0/+1 | |
| | ||||||
* | first pieces of code | Marian Sigler | 2012-09-13 | 2 | -0/+58 | |
| | ||||||
* | Initial commit | Marian Sigler | 2012-09-13 | 3 | -0/+6 | |