Commit graph

99 commits

Author SHA1 Message Date
cab9e9701b Protect /etc/salt/grains
Make sure that the permissions of /etc/salt/grains only allow access for the
root user.
2016-09-25 17:27:42 +02:00
2d347e6e96 Ignore PyCharm files 2016-09-25 01:10:45 +02:00
937d0aff97 Improve Vagrant setup
Use debian/contrib-jessie64 base box, install python-cryptography before
saltstack bootstrap.
2016-09-25 01:10:17 +02:00
2ff7dd8902 Refactoring of ldaptasks
All LDAP tasks return a dictionary now to allow chaining with other
tasks, the new task delete_ldap_user_chained has been added to allow
user deletion after other Celery tasks.
2016-02-07 22:41:36 +01:00
54875619aa Mark LDAP field names as byte strings
The django-ldapdb code cannot handle unicode field names with real LDAP
directories. This commit marks the field names of LDAP entities as byte
strings.
2016-02-07 22:40:19 +01:00
1a24cf9c50 Change salt minion id in Vagrantfile 2016-02-06 13:37:53 +01:00
94aacf1398 Add tests for delete tasks
This commit raises coverage for ldaptasks.tasks to 100% by adding tests
for delete_ldap_group, delete_ldap_group_if_empty and delete_ldap_user
tasks.
2016-02-02 18:31:37 +00:00
67ccdbb7c8 Add tests for ldaptasks functions
This commit adds tests for ldaptasks.set_ldap_user_password,
ldaptasks.add_ldap_user_to_group and
ldaptasks.remove_ldap_user_from_group.
2016-02-01 23:15:57 +00:00
23015af083 Update Django and gvacommon dependencies
This commit updates the Django dependency version to 1.9.2 and gvacommon
to 0.3.0 that provides gvacommon.settings_utils.get_env_variable. The
gnuviechadmin.settings.base module now uses this implementation instead
of an own copy and the corresponding test has been removed too.
2016-02-01 23:37:39 +01:00
4b060c51f4 Add unit tests
This commit adds test coverage for gvaldap and ldapentities and starts
to provide coverage for ldaptasks using mockldap.
2016-02-01 00:55:59 +00:00
32366e93dd Add setup.cfg for QA tools, fix flake8 warnings 2016-01-31 23:30:17 +01:00
ed18c4a6f9 Modernize dependencies, sync with gva
This commit modernizes all requirements to the latest versions, adapts
the settings to Django 1.9 and synchronizes the settings layout with
gva.
2016-01-31 23:19:26 +01:00
7c6ed136eb Switch result backend to redis
The AMQP result backend proved as impractical, this commit switches to
redis instead.
2016-01-31 21:36:40 +01:00
e9ee69f6e5 Add code quality requirements 2016-01-31 21:34:47 +01:00
5094990c9a Switch from deprecated amqp backend to rpc
The previously used amqp result backend has been marked as deprecated by
the celery developers. This commit switches to the rpc backend that
should be used instead.

This commit renames get_env_setting to get_env_variable to be consistent
with the gva settings modules.
2016-01-31 21:34:26 +01:00
02768a4b95 Use separate AMQP vhost for tests 2016-01-31 21:34:20 +01:00
62d8ed64e2 Move salt states and pillar data to separate repository
This commit removes the salt states and pillar data and adds the
ldapserver role to the gvaldap host.
2016-01-31 21:32:15 +01:00
6a8997e950 Add initial Vagrant/Saltstack setup
This commit adds an initial Vagrant and Saltstack setup that reuses the
same configuration as that of the gva repository. The LDAP server itself
is not configured yet.
2016-01-29 23:26:57 +01:00
af8b9e974c Start next development iteration
This commit moves the version number to gvaldap's __init__.py, bumps the
copyright year and starts a new development iteration. The docs/conf.py
is synchronized with the gva project's version of that file.
2016-01-29 16:57:48 +01:00
809168d80f Merge tag '0.5.2'
release 0.5.2

- fix minor issues in log messages

* tag '0.5.2':
  update docs version, add release to changelog
2015-01-29 21:52:16 +01:00
1079b0b1d2 Merge branch 'release/0.5.2' into production
* release/0.5.2:
  update docs version, add release to changelog
  add changelog entry
  change order of LDAP commands and logging to fix log messages
2015-01-29 21:51:50 +01:00
261ffe5bb0 update docs version, add release to changelog 2015-01-29 21:51:25 +01:00
fad70cf74a add changelog entry 2015-01-29 21:50:23 +01:00
b0097ea0a5 change order of LDAP commands and logging to fix log messages 2015-01-29 21:35:33 +01:00
ceb1016e8f release 0.5.1
- hotfix for invalid Reject handling
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQEcBAABCgAGBQJUynGoAAoJEA15HcjXN8HZ6EYIALNiQdZvjjuIMviwF4amfmb8
 K5HCOOWoxc5dr8eKWhrzL4xUg/N6MT1VcRp/zJyiwGxM3Pe0dbx/lBMkIVxtjqpG
 sQDx+QITV/eP+rGIO+/mimvfeIsghkIOPGVy+UHdsBS7H4p8d8EiSNMs9WjNzx8M
 tt5nGOONlWn5wfwha0EaaIFR51cBfmH8l/MjK+6EjyWlPmemQSMB2AmEHlGgxQPt
 Wm8Pd5vQp61WOBxGeQtSvLGeDSjBgdBB81Z7Zh9RgeJb4Yb35mmAFdF/5c3r3aEI
 MqRtXIj/uYGiOepwKKcGYShibkg4FRquGeEsame/lVNXgtqfW0PRrGclFW4XBFA=
 =31/7
 -----END PGP SIGNATURE-----

Merge tag '0.5.1'

release 0.5.1

- hotfix for invalid Reject handling

* tag '0.5.1':
  update docs version, add release to changelog
2015-01-29 18:45:17 +01:00
94cf918bac Merge branch 'release/0.5.1' into production
* release/0.5.1:
  update docs version, add release to changelog
  reverted Reject handling in ldaptasks
2015-01-29 18:44:49 +01:00
7e31e8d671 update docs version, add release to changelog 2015-01-29 18:44:42 +01:00
2bca6f687f reverted Reject handling in ldaptasks 2015-01-29 18:41:44 +01:00
5d22e63686 release 0.5.0
- better logging, updated dependencies
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQEcBAABCgAGBQJUym/JAAoJEA15HcjXN8HZ9GsIANmCtRQlkuk2GB0kUnM18qu0
 /8pB9X7McSwD8JKbEi8yEu/WY4Dc17s6WELTMkt5RjNGjDDZI0vDSW3QycmnqvP1
 T/zWXT4N3PJVtIV9U2InVzoBhMBONz4E6QXvjagzTwaPtfa8F4aqBiV6yE9bAURL
 Is27Zjjy/7DArHZ8jDAG8/JIPY3ZzxBgrief46p/PhLjq7/xEdQURCHZph+UVDVA
 6hJoQ77X8KFPfCr1EEn+Tu1+1GMPu4JXh+XZOLzjab8HkORtE4/Tjbtw53hAqQV9
 +0Z6pWYPi7C7fAIaB9+E8jCiR8oMgp46Y0RefKl8kwvGlGKYM9xkAnKvbja1oO8=
 =7lQU
 -----END PGP SIGNATURE-----

Merge tag '0.5.0'

release 0.5.0

- better logging, updated dependencies

* tag '0.5.0':
  update version, add release to changelog
2015-01-29 18:37:19 +01:00
26b890b859 Merge branch 'release/0.5.0' into production
* release/0.5.0:
  update version, add release to changelog
  improved task logging
  update dependencies
2015-01-29 18:36:27 +01:00
b7ecbfc0dc update version, add release to changelog 2015-01-29 18:35:40 +01:00
b422c554ea improved task logging 2015-01-29 18:32:13 +01:00
e4a04130e7 update dependencies
- update to Django 1.7.4
- update to bpython 0.13.2
- add explicit dependencies for Pygments and requests
- remove unused pyyaml dependency
2015-01-29 17:16:14 +01:00
7f562cffcc release 0.4.0
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQEcBAABCgAGBQJUw7Q+AAoJEA15HcjXN8HZ+5cH/3C+DLp6eI7zvHCCHPAIY05f
 /wUnsvvvY5Is70nfce74zb/8Dt3ptyFdN1YPMCm4cRDFKXb/E+vuVi51d5LaqR6N
 i2vdDHdYThBkO5LkJQU/hW6JPYGVQ6zDF/n4RcYZ+6yQ5SSCp2VOB662RingrL0D
 rTPxA+XqtSjh43f5/zSWbc+zDlPkpay2TXnWhlrRTi+TlO/CEAdk6goJ0KbEfRQ0
 YDejM0oUg7BZ3/GYBClMOOkD6lPl7U9jN5KNbIzIbMX9x3g2p9JwYp+IFQRgL2qx
 KJl3KJDyqjpPXVYqS4lrHd4STqND8hEZtcTtOufXM9VS19HSFRoxtvCLWH14ajA=
 =B4tW
 -----END PGP SIGNATURE-----

Merge tag '0.4.0'

release 0.4.0

* tag '0.4.0':
  set version number, mark release in changelog
2015-01-24 16:03:32 +01:00
57161ab89e Merge branch 'release/0.4.0' into production
* release/0.4.0:
  set version number, mark release in changelog
  add new task set_ldap_user_password
2015-01-24 16:03:14 +01:00
48558baafc set version number, mark release in changelog 2015-01-24 16:02:25 +01:00
023a9eb448 add new task set_ldap_user_password 2015-01-19 22:38:58 +01:00
3ab1c8cdbb release 0.3.0
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQEcBAABCgAGBQJUvXRoAAoJEA15HcjXN8HZDPQH/i9xzUprxDcr0M7AC3+1eP9+
 9zsSxOPfdUjgBFuo5azXqVNAq7FJwS4ZdpCmEMhWDDKoz7m+aoxNtU/2hrkwzFqS
 9dLvsxZQBqQjmOq8YwFFwqm6EVjzhX6JU/h6VRDwGHVhho7bHuGoPQPo0BLCVHS/
 36kV4rk89cUsVPm5m6aW0UkfpsTkNC0PCYz7A0Ez1uuCRqRoAxptRsV5cEqwK3UT
 lhG+86AMDxWLR3WV/gZ3fCCI3rCubk90RLd5nPUKs2/xNlhKTSVHDS39GKoBH1pr
 otvbL/o4OO5kWc39Ahc9eDSgzFFF9It72V1k2611DPl8c75RuA6os4m/W/Bbjxs=
 =egSt
 -----END PGP SIGNATURE-----

Merge tag '0.3.0'

release 0.3.0

* tag '0.3.0':
  update copyright years, add release version
2015-01-19 22:17:34 +01:00
50d9dfab33 Merge branch 'release/0.3.0' into production
* release/0.3.0:
  update copyright years, add release version
  add changelog entry for tasks refactoring
  adapt code documentation to changed module structure
  move osusers to ldaptasks
  switch to gvacommon.celeryrouters.GvaRouter
  unify routers, add support for mysql and pgsql tasks
2015-01-19 22:17:15 +01:00
fbbb5624fe update copyright years, add release version 2015-01-19 22:15:42 +01:00
b75d41aaae add changelog entry for tasks refactoring 2015-01-19 21:57:48 +01:00
f5f47ca101 adapt code documentation to changed module structure 2015-01-19 21:29:06 +01:00
e489ecb797 move osusers to ldaptasks 2015-01-19 21:27:19 +01:00
f5c2970a31 switch to gvacommon.celeryrouters.GvaRouter 2015-01-01 22:37:05 +01:00
589373a693 Merge commit '546441d49920caf43eb7d33976c2d71ae85f16d5'
* commit '546441d49920caf43eb7d33976c2d71ae85f16d5':
  unify routers, add support for mysql and pgsql tasks
2015-01-01 22:36:22 +01:00
546441d499 unify routers, add support for mysql and pgsql tasks
- add new celeryrouters.GvaRouter
- remove LdapRouter and FileRouter
2015-01-01 22:32:37 +01:00
9bd8ad0a6f Merge tag '0.2.0'
release 0.2.0

* tag '0.2.0':
  set release version
2014-12-29 15:19:00 +01:00
8891a33b7c Merge branch 'release/0.2.0' into production
* release/0.2.0:
  set release version
  document new task in changelog
  implement new task osusers.tasks.delete_ldap_group
  define celery timezone, restrict celery content to json
  add missing django bootstrap for documentation building
  use celery routers from gvacommon
  initial version
2014-12-29 15:18:53 +01:00
f9d1b52c3c set release version 2014-12-29 15:18:34 +01:00
ad595bd658 document new task in changelog 2014-12-29 15:17:05 +01:00