summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Warn users not to enter valuable passwords (because of osqa etc)Marian Sigler2012-09-241-0/+1
| | |
| * | Add `logout_required; Add bootstrap for formsMarian Sigler2012-09-2410-45/+125
| | |
| * | settings: start with service managementMarian Sigler2012-09-213-7/+16
| | |
* | | use passwd_s for password changesNico von Geyso2012-09-241-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 strNico von Geyso2012-09-231-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 addressMarian Sigler2012-09-215-20/+65
|
* add color to flashesMarian Sigler2012-09-213-6/+28
|
* use img instead of background-imageNico von Geyso2012-09-212-6/+2
|
* fixed path for logoNico von Geyso2012-09-211-1/+1
|
* added spline logogit status111Nico von Geyso2012-09-213-1/+19
|
* Add confirmation to registration.Marian Sigler2012-09-216-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 importMarian Sigler2012-09-211-8/+6
|
* add send_mail functionMarian Sigler2012-09-212-1/+25
|
* account: remove delete by string for the time beingMarian Sigler2012-09-211-12/+12
| | | | | That functionality requires searching through the subtree for services to be deleted etc.
* add functions to create confirmation linksMarian Sigler2012-09-211-1/+36
|
* Merge branch 'master' of ssh://git.spline.de/account-webMarian Sigler2012-09-211-0/+3
|\
| * contrib/munin: add relative importAlexander Sulfrian2012-09-211-0/+3
| |
* | basic settings (yet without confirmation mail on mail change etc)Marian Sigler2012-09-216-13/+49
| |
* | account: don't fail on unicode input strings. Update examplesMarian Sigler2012-09-211-8/+14
|/
* Merge branch 'master' of ssh://git.spline.de/account-webMarian Sigler2012-09-211-0/+1
|\
| * Merge branch 'master' of ssh://git.spline.de/account-webAlexander Sulfrian2012-09-214-42/+59
| |\ | | | | | | | | | | | | | | | * 'master' of ssh://git.spline.de/account-web: use AccountService AccountService: expect admin credentials at initialization.
| * | forms: add mail to RegisterFormAlexander Sulfrian2012-09-211-0/+1
| | |
* | | AccountService.delete: check for basestring not .dnMarian Sigler2012-09-211-4/+5
| |/ |/|
* | Merge branch 'master' of ssh://git.spline.de/account-webMarian Sigler2012-09-212-0/+1
|\|
| * requirements: add pycryptoAlexander Sulfrian2012-09-211-0/+1
| |
| * contrib/munin: moved scriptAlexander Sulfrian2012-09-211-0/+0
| |
* | use AccountServiceMarian Sigler2012-09-213-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 Sigler2012-09-211-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-webMarian Sigler2012-09-211-5/+4
|\
| * fixed _alter_passwords()Nico von Geyso2012-09-211-5/+4
| |
* | change Account.__repr__Marian Sigler2012-09-211-2/+2
| |
* | Merge branch 'master' of ssh://git.spline.de/account-webMarian Sigler2012-09-212-62/+160
|\|
| * Added basic munin pluginNico von Geyso2012-09-201-0/+14
| | | | | | | | With this plugin its easy to monitor the amounts of accounts over time
| * Updated AccountService APINico von Geyso2012-09-201-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 pageMarian Sigler2012-09-214-15/+62
| |
* | Use Flask-WTForms because it adds CSRF protectionMarian Sigler2012-09-214-8/+18
| |
* | add the flaskext_compat moduleMarian Sigler2012-09-212-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-webMarian Sigler2012-09-192-0/+15
|\
| * contrib/ldap: add schema for servicePasswordAlexander Sulfrian2012-09-192-0/+15
| |
* | login works now.Marian Sigler2012-09-197-18/+86
| |
* | intermediate commit before I remove flask-login againMarian Sigler2012-09-197-9/+66
|/
* Merge branch 'master' of ssh://git.spline.de/account-webNico von Geyso2012-09-178-3/+115
|\
| * first web stuffMarian Sigler2012-09-148-3/+115
| |
* | proper syntax for pipNico von Geyso2012-09-171-2/+2
| |
* | added basic account service functionalityNico von Geyso2012-09-171-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 classNico von Geyso2012-09-141-20/+57
|
* added env dirNico von Geyso2012-09-141-0/+1
|
* first pieces of codeMarian Sigler2012-09-132-0/+58
|
* Initial commitMarian Sigler2012-09-133-0/+6