Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add tests for LDAPAuthBackend. | Michał Górny | 2013-09-22 | 1 | -0/+73 |
| | |||||
* | Normalize usernames for LDAP. | Michał Górny | 2013-09-22 | 1 | -0/+5 |
| | | | | | This decreases the database pollution, and increases compatibility with mockldap. | ||||
* | Clean up django_auth_ldap leftovers. | Michał Górny | 2013-09-22 | 3 | -11/+2 |
| | |||||
* | Fix login tests for proper handling of LDAP exceptions. | Michał Górny | 2013-09-22 | 1 | -4/+7 |
| | |||||
* | Replace django-auth-ldap with ldapdb-based auth backend. | Michał Górny | 2013-09-22 | 5 | -3/+43 |
| | |||||
* | get_bound_ldapuser(): support custom username. | Michał Górny | 2013-09-22 | 1 | -2/+3 |
| | |||||
* | add tearDownClass | Pavlos Ratis | 2013-09-20 | 12 | -0/+48 |
| | |||||
* | delete ldapobj after test execution | Pavlos Ratis | 2013-09-20 | 12 | -0/+12 |
| | |||||
* | s/self.ldapobject/self.ldapobj/g | Pavlos Ratis | 2013-09-20 | 12 | -40/+40 |
| | |||||
* | Import ACLField from our forked django-ldapdb. | Michał Górny | 2013-09-17 | 2 | -1/+36 |
| | | | | | We will work on getting a more generic field upstream. For now, let's just keep it local. | ||||
* | Require the database cleanup only to remove USER and PASSWORD. | Michał Górny | 2013-09-17 | 1 | -2/+4 |
| | | | | | | | | Due to limitations in django, we can't really remove or replace settings dictionary once connection is instantiated. Therefore, all the code that's playing with it will simply modify the existing dict. As a result, removing the connection will only remove username & password, not the whole entry. | ||||
* | Clean up settings.DATABASES when get_bound_ldapuser() fails. | Michał Górny | 2013-09-12 | 1 | -1/+5 |
| | | | | For example, if invalid credentials are provided. | ||||
* | Tests: check whether failed get_bound_ldapuser() doesn't pollute the db. | Michał Górny | 2013-09-12 | 1 | -0/+7 |
| | |||||
* | Use context managers to clean up settings.DATABASES after binds. | Michał Górny | 2013-09-12 | 3 | -249/+262 |
| | |||||
* | Use session identifiers for unique LDAP db aliases. | Michał Górny | 2013-09-12 | 2 | -5/+9 |
| | | | | | Since user binding is done per session, this should be both safer and cleaner. | ||||
* | Fix the tests about rendered result, they were not properly concatenating ↵ | Theo Chatzimichos | 2013-09-08 | 2 | -17/+5 |
| | | | | strings | ||||
* | Identation, whitespace and other cosmetics fixes in templates | Theo Chatzimichos | 2013-09-08 | 8 | -61/+70 |
| | |||||
* | Merge pull request #86 from dastergon/misc_flake8 | Theo Chatzimichos | 2013-09-08 | 8 | -92/+111 |
|\ | | | | | fix misc pep8 errors | ||||
| * | fix misc pep8 errors | Pavlos Ratis | 2013-09-08 | 8 | -92/+111 |
| | | |||||
* | | increase tests verbosity to 2 | Pavlos Ratis | 2013-09-08 | 1 | -1/+1 |
|/ | |||||
* | add integration tests for settings | Pavlos Ratis | 2013-09-04 | 1 | -0/+77 |
| | |||||
* | move password and email settings to another page | Pavlos Ratis | 2013-09-04 | 6 | -14/+168 |
| | |||||
* | add support for user settings | Pavlos Ratis | 2013-09-01 | 7 | -9/+397 |
| | | | | | | | | | | | | | | | | | | | Basic setting pages that allow users to edit easily their LDAP attributes via web forms. Settings: * Profile settings (first name , last name, email , timezone, birthday, * passwords) * Contact settings (website, IM , GPG fingerprint, location, longitude, latitude) * Gentoo settings (mentors, developer bug, join date, retire date, ssh key) Notes: * Currently settings work only with single values and not * listfields. * Timezone needed for OpenID (cc: @mgorny) * Gentoo Account Settings page is available for everyone.(testing purposes) | ||||
* | Add tests for ldapuser and get_bound_ldapuser | Theo Chatzimichos | 2013-08-28 | 2 | -3/+89 |
| | |||||
* | Bring back a needed import, and exclude it from flake checks | Theo Chatzimichos | 2013-08-26 | 1 | -0/+1 |
| | |||||
* | Enable ./setup.py test functionality | Theo Chatzimichos | 2013-08-26 | 1 | -0/+26 |
| | |||||
* | okupy.tests is not an app anymore, and it's not needed by the discover runner | Theo Chatzimichos | 2013-08-26 | 1 | -1/+0 |
| | |||||
* | Fix flake8 errors | Theo Chatzimichos | 2013-08-26 | 24 | -154/+299 |
| | |||||
* | switch back to non-relative imports, they proved to be confusing | Theo Chatzimichos | 2013-08-25 | 28 | -70/+72 |
| | |||||
* | Move OkupyError to okupy/__init__ | Theo Chatzimichos | 2013-08-25 | 4 | -7/+6 |
| | |||||
* | Add tests for SSH handlers. | Michał Górny | 2013-08-25 | 3 | -14/+218 |
| | |||||
* | Store SSH handler list in settings. | Michał Górny | 2013-08-25 | 3 | -8/+11 |
| | |||||
* | Support authentication using SSH. | Michał Górny | 2013-08-25 | 9 | -4/+146 |
| | |||||
* | Reset RNG in @postfork. | Michał Górny | 2013-08-25 | 1 | -0/+6 |
| | |||||
* | Introduce the concept of auth handlers. | Michał Górny | 2013-08-25 | 2 | -1/+25 |
| | | | | | Somehow similar to views. We pass command and its arguments as username, the thing splits it and looks for handler for the command. | ||||
* | Initial SSH server support. | Michał Górny | 2013-08-25 | 5 | -1/+114 |
| | |||||
* | Remove search_s.seed, as it is now covered by mockldap | Theo Chatzimichos | 2013-08-24 | 11 | -73/+12 |
| | |||||
* | stop spamming the logs when running the tests | Theo Chatzimichos | 2013-08-24 | 1 | -14/+5 |
| | |||||
* | Merge pull request #75 from tampakrap/tests_v2 | Theo Chatzimichos | 2013-08-23 | 5 | -3/+149 |
|\ | | | | | Replace ACLField with proper class methods and model manager Various fixes/additions in the test field | ||||
| * | Add tests for the accounts lists | Theo Chatzimichos | 2013-08-23 | 2 | -0/+116 |
| | | |||||
| * | Add support for negative queries in set_search_seed | Theo Chatzimichos | 2013-08-21 | 1 | -2/+5 |
| | | |||||
| * | Add more attrs to the test accounts, for more testing | Theo Chatzimichos | 2013-08-21 | 1 | -1/+23 |
| | | |||||
| * | add test to ensure that anon gets redirected to requested next URL | Theo Chatzimichos | 2013-08-19 | 1 | -0/+5 |
| | | |||||
* | | SSLCertAuthBackend: make request mandatory. | Michał Górny | 2013-08-23 | 3 | -22/+8 |
| | | | | | | | | | | | | django.contrib.auth is prepared to call backends which don't have matching prototype. Therefore, with mandatory 'request' the backend simply won't be called for non-SSL requests. | ||||
* | | Add tests for SSL auth. | Michał Górny | 2013-08-23 | 2 | -0/+132 |
| | | |||||
* | | Switch ciphers to output urlsafe base64. | Michał Górny | 2013-08-21 | 4 | -12/+12 |
| | | |||||
* | | Move crypto-related stuff to okupy.crypto. | Michał Górny | 2013-08-21 | 14 | -37/+40 |
| | | |||||
* | | 'Pack' session id into binary string before encrypting. | Michał Górny | 2013-08-21 | 1 | -3/+25 |
| | | | | | | | | | | | | Since it's basically base36, we can treat it as base64 and pack 3:4. This way, with the random padding added, we end up taking one block of ciphertext less and we have shorter and more unique tokens. | ||||
* | | Use AES as OkupyCipher. | Michał Górny | 2013-08-21 | 2 | -5/+5 |
| | | | | | | | | This gives us larger block size == more awesome tokens. | ||||
* | | IDCipher: use unpadded base32 as well. | Michał Górny | 2013-08-21 | 2 | -4/+3 |
| | |