mirror/userdir-ldap.git
12 years agoProfile if UD_PROFILE is in environment
Peter Palfrader [Mon, 12 Mar 2012 15:28:29 +0000 (16:28 +0100)]
Profile if UD_PROFILE is in environment

12 years agoNo need to depend on python-lockfile anymore
Peter Palfrader [Mon, 12 Mar 2012 15:17:53 +0000 (16:17 +0100)]
No need to depend on python-lockfile anymore

12 years agoUse flock()
Peter Palfrader [Mon, 12 Mar 2012 15:16:28 +0000 (16:16 +0100)]
Use flock()

12 years agoUse eatmydata!
Peter Palfrader [Mon, 12 Mar 2012 14:52:04 +0000 (15:52 +0100)]
Use eatmydata!

12 years agoUDLdap.py: make a cache for __getitem__() decisions.
Peter Palfrader [Mon, 12 Mar 2012 14:47:43 +0000 (15:47 +0100)]
UDLdap.py: make a cache for __getitem__() decisions.

12 years agoNo need to mkdir userkeys directory anymore
Peter Palfrader [Mon, 12 Mar 2012 14:17:20 +0000 (15:17 +0100)]
No need to mkdir userkeys directory anymore

12 years agoget rid of global state variable CurrentHost. This will enable upcoming changes.
Peter Palfrader [Mon, 12 Mar 2012 14:16:16 +0000 (15:16 +0100)]
get rid of global state variable CurrentHost.  This will enable upcoming changes.

12 years agoGenerateDir is no longer a global var
Peter Palfrader [Mon, 12 Mar 2012 13:57:53 +0000 (14:57 +0100)]
GenerateDir is no longer a global var

12 years agominor nit
Peter Palfrader [Mon, 12 Mar 2012 13:00:41 +0000 (14:00 +0100)]
minor nit

12 years agospeed up ssh tarball generation
Peter Palfrader [Mon, 12 Mar 2012 12:56:10 +0000 (13:56 +0100)]
speed up ssh tarball generation

No longer write indidividual user's ssh authorized_keys to disk, only to
read them later.  Directly create a TarInfo object without referring to
any on-disk files.

12 years agoud-generate speed, I
Peter Palfrader [Mon, 12 Mar 2012 11:53:56 +0000 (12:53 +0100)]
ud-generate speed, I

cut down on calls to IsInGroup by doing it once in generate_host() and
not having the individual generators run it.

side effect: Up until now we exported empty groups to a host, if that group had
a user with that group as their primary group - even if that particular user
was not exported to this this.  No we no longer export empty groups.

12 years agoud-generate: Move main code into a ud_generate()
Peter Palfrader [Mon, 12 Mar 2012 11:06:49 +0000 (12:06 +0100)]
ud-generate: Move main code into a ud_generate()

12 years agoud-generate: Add -f option to build even if cache is current
Peter Palfrader [Mon, 12 Mar 2012 10:56:18 +0000 (11:56 +0100)]
ud-generate: Add -f option to build even if cache is current

12 years agoud-generate: Move code into getLastBuildTime() and getLastLDAPChangeTime() functions.
Peter Palfrader [Mon, 12 Mar 2012 10:46:12 +0000 (11:46 +0100)]
ud-generate: Move code into getLastBuildTime() and getLastLDAPChangeTime() functions.

12 years agoud-generate: No longer expand $ in dnsZoneEntry data to a \n\t.
Peter Palfrader [Mon, 12 Mar 2012 10:37:48 +0000 (11:37 +0100)]
ud-generate: No longer expand $ in dnsZoneEntry data to a \n\t.

12 years agochangelog entry for ud-mailgate fix
Peter Palfrader [Sat, 10 Mar 2012 18:05:08 +0000 (19:05 +0100)]
changelog entry for ud-mailgate fix

12 years agoDo not try to do an ldap modify with no changes - now show command to changes@ should...
Peter Palfrader [Sat, 10 Mar 2012 18:04:15 +0000 (19:04 +0100)]
Do not try to do an ldap modify with no changes - now show command to changes@ should work again

12 years agofix dependency, needed by ud-generate
Martin Zobel-Helas [Sat, 10 Mar 2012 16:44:43 +0000 (17:44 +0100)]
fix dependency, needed by ud-generate

12 years agoMake cache_last_mod thing more robust
Peter Palfrader [Sat, 10 Mar 2012 14:44:59 +0000 (15:44 +0100)]
Make cache_last_mod thing more robust

12 years agomake ud-generate work when there is no previous run that created last_update.trace
Peter Palfrader [Sat, 10 Mar 2012 14:33:13 +0000 (15:33 +0100)]
make ud-generate work when there is no previous run that created last_update.trace

12 years agodebianGroups may have cn attribute
Peter Palfrader [Sat, 10 Mar 2012 14:21:29 +0000 (15:21 +0100)]
debianGroups may have cn attribute

12 years agoMerge from torproject.org:
Peter Palfrader [Sat, 10 Mar 2012 13:50:22 +0000 (14:50 +0100)]
Merge from torproject.org:

- Allow sshRSAAuthKey for role accounts.
- Support ssh key attributes for gitolite export.
- Add ssh-gitolite support.

12 years agoOne less hardcode debian.org domain in slapd.conf snippet
Peter Palfrader [Sat, 10 Mar 2012 13:44:43 +0000 (14:44 +0100)]
One less hardcode debian.org domain in slapd.conf snippet

12 years agochangelog entry
Stephen Gran [Sat, 10 Mar 2012 08:06:35 +0000 (08:06 +0000)]
changelog entry

Signed-off-by: Stephen Gran <steve@lobefin.net>
12 years agopurge old logs
Stephen Gran [Sat, 10 Mar 2012 08:05:18 +0000 (08:05 +0000)]
purge old logs

Signed-off-by: Stephen Gran <steve@lobefin.net>
12 years agoand ship new file to hosts
Stephen Gran [Fri, 9 Mar 2012 20:19:55 +0000 (20:19 +0000)]
and ship new file to hosts

Signed-off-by: Stephen Gran <steve@lobefin.net>
12 years agoWrite both time of last ldap update and time of last run to trace file
Stephen Gran [Fri, 9 Mar 2012 20:17:26 +0000 (20:17 +0000)]
Write both time of last ldap update and time of last run to trace file

Signed-off-by: Stephen Gran <steve@lobefin.net>
12 years agorecord both time of last action and last run
Stephen Gran [Fri, 9 Mar 2012 20:13:46 +0000 (20:13 +0000)]
record both time of last action and last run
Signed-off-by: Stephen Gran <steve@lobefin.net>
12 years agoud-replicate: set correct permissions for web-passwords
Martin Zobel-Helas [Fri, 9 Mar 2012 09:33:57 +0000 (10:33 +0100)]
ud-replicate: set correct permissions for web-passwords
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
12 years agoexport webPassword
Martin Zobel-Helas [Thu, 8 Mar 2012 22:31:36 +0000 (23:31 +0100)]
export webPassword
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
12 years agomess with uid number generation
Peter Palfrader [Mon, 5 Mar 2012 10:56:00 +0000 (11:56 +0100)]
mess with uid number generation

* Allow a set of users to be ignored for picking UIDs.
* When picking uid/gid numbers try to pick the same number for both.

12 years agoIntroduce BaseBaseDN which is the real base dn
Peter Palfrader [Mon, 5 Mar 2012 10:28:03 +0000 (11:28 +0100)]
Introduce BaseBaseDN which is the real base dn

12 years agouserdir_ldap.py: read auth password from environment if set
Peter Palfrader [Mon, 5 Mar 2012 10:17:58 +0000 (11:17 +0100)]
userdir_ldap.py: read auth password from environment if set

12 years agoSync welcome-message-800
Peter Palfrader [Wed, 29 Feb 2012 16:24:35 +0000 (17:24 +0100)]
Sync welcome-message-800

12 years agoadd webPassword
Martin Zobel-Helas [Sun, 19 Feb 2012 13:48:03 +0000 (14:48 +0100)]
add webPassword

12 years agoadd webPassword
Martin Zobel-Helas [Sun, 19 Feb 2012 13:46:24 +0000 (14:46 +0100)]
add webPassword

12 years agoMerge branch 'master' of ssh://db.debian.org/git/userdir-ldap
Stephen Gran [Thu, 29 Dec 2011 21:23:11 +0000 (21:23 +0000)]
Merge branch 'master' of ssh://db.debian.org/git/userdir-ldap

12 years agoFix some usages of hardcoded debian.org
Stephen Gran [Thu, 29 Dec 2011 21:22:45 +0000 (21:22 +0000)]
Fix some usages of hardcoded debian.org
Signed-off-by: Stephen Gran <steve@lobefin.net>
12 years agoUpdate to match live slapd.conf
Stephen Gran [Thu, 29 Dec 2011 21:21:00 +0000 (21:21 +0000)]
Update to match live slapd.conf
Signed-off-by: Stephen Gran <steve@lobefin.net>
12 years agoud-replicate: now preserve server side modifcation times when rsyncing data
Peter Palfrader [Thu, 29 Dec 2011 21:06:23 +0000 (22:06 +0100)]
ud-replicate: now preserve server side modifcation times when rsyncing data

12 years agofix breaking old ud-generate locks.
Peter Palfrader [Thu, 29 Dec 2011 20:55:21 +0000 (21:55 +0100)]
fix breaking old ud-generate locks.

12 years agoud-replicate: do not hard-code 'debian.org' in the 'write-zonefile debian.org' call...
Peter Palfrader [Wed, 2 Nov 2011 22:42:06 +0000 (23:42 +0100)]
ud-replicate: do not hard-code 'debian.org' in the 'write-zonefile debian.org' call, but instead re-use the domain from email-append.

12 years agowhy does python not believe in variable scoping, but then complain about it?
Stephen Gran [Fri, 26 Aug 2011 19:26:15 +0000 (19:26 +0000)]
why does python not believe in variable scoping, but then complain about it?

Signed-off-by: Stephen Gran <steve@lobefin.net>
12 years agommmm, that's likely to be a namespace clash
Stephen Gran [Sat, 20 Aug 2011 16:19:24 +0000 (17:19 +0100)]
mmmm, that's likely to be a namespace clash
Signed-off-by: Stephen Gran <steve@lobefin.net>
12 years agoWe need to use an actually defined variable name
Stephen Gran [Sat, 20 Aug 2011 15:55:59 +0000 (15:55 +0000)]
We need to use an actually defined variable name
Signed-off-by: Stephen Gran <steve@lobefin.net>
12 years agoud-mailgate: only run ldapmodfiy if we actually have attributes to modify.
Peter Palfrader [Mon, 15 Aug 2011 19:52:42 +0000 (21:52 +0200)]
ud-mailgate: only run ldapmodfiy if we actually have attributes to modify.

12 years agoAdd slapo-constaint for keyfingerprint
Faidon Liambotis [Sun, 14 Aug 2011 13:23:01 +0000 (16:23 +0300)]
Add slapo-constaint for keyfingerprint

12 years agoMake ud-generate pull the last modification time out of ldap and only
Stephen Gran [Fri, 29 Jul 2011 16:24:52 +0000 (16:24 +0000)]
Make ud-generate pull the last modification time out of ldap and only
run if ldap has been updated.  We have some more architecture work to do
before this can go live without making the monitoring go insane.
Signed-off-by: Stephen Gran <steve@lobefin.net>
12 years agoand changelog too
Stephen Gran [Thu, 9 Jun 2011 19:28:29 +0000 (19:28 +0000)]
and changelog too

Signed-off-by: Stephen Gran <steve@lobefin.net>
12 years agoupdate Net::LDAP import
Stephen Gran [Thu, 9 Jun 2011 19:28:07 +0000 (19:28 +0000)]
update Net::LDAP import

Signed-off-by: Stephen Gran <steve@lobefin.net>
12 years agoand some changelog
Stephen Gran [Thu, 9 Jun 2011 17:52:36 +0000 (17:52 +0000)]
and some changelog

Signed-off-by: Stephen Gran <steve@lobefin.net>
12 years agomore sha module
Stephen Gran [Thu, 9 Jun 2011 17:47:12 +0000 (17:47 +0000)]
more sha module

Signed-off-by: Stephen Gran <steve@lobefin.net>
12 years agoget rid of most uses of sha module
Stephen Gran [Thu, 9 Jun 2011 17:17:46 +0000 (17:17 +0000)]
get rid of most uses of sha module

Signed-off-by: Stephen Gran <steve@lobefin.net>
12 years agoHandle capital {CRYPT} in userpasswd
Peter Palfrader [Sat, 21 May 2011 14:50:21 +0000 (16:50 +0200)]
Handle capital {CRYPT} in userpasswd

12 years agoFilter on shadowAccount
Peter Palfrader [Sat, 21 May 2011 14:42:41 +0000 (16:42 +0200)]
Filter on shadowAccount

12 years agono userpassword means locked.
Peter Palfrader [Sat, 21 May 2011 14:42:02 +0000 (16:42 +0200)]
no userpassword means locked.

12 years agonaming your variable like a module is unsmart
Peter Palfrader [Sat, 21 May 2011 14:03:21 +0000 (16:03 +0200)]
naming your variable like a module is unsmart

12 years agoMore lax with mime
Peter Palfrader [Sat, 21 May 2011 13:41:47 +0000 (15:41 +0200)]
More lax with mime

12 years agoud-echelon fixes
Peter Palfrader [Sat, 21 May 2011 13:13:31 +0000 (15:13 +0200)]
ud-echelon fixes

12 years agounreleased
Peter Palfrader [Sat, 21 May 2011 12:57:18 +0000 (14:57 +0200)]
unreleased

12 years agorelease userdir-ldap-0.3.79
Peter Palfrader [Sat, 21 May 2011 12:53:28 +0000 (14:53 +0200)]
release

12 years agotry to properly handle some more mime stuff.
Peter Palfrader [Sat, 21 May 2011 12:52:28 +0000 (14:52 +0200)]
try to properly handle some more mime stuff.

- use email module instead of deprecated mimetools and multifile modules
- changes: sigcheck ud-echelon ud-mailgate userdir_gpg.py
- move ud-echelon and sigcheck to GPGCheckSig2 interface.

12 years agoUpdate debian/changelog
Peter Palfrader [Sat, 21 May 2011 12:50:28 +0000 (14:50 +0200)]
Update debian/changelog

12 years agoMove gpgwrapper aside
Peter Palfrader [Sat, 21 May 2011 10:52:49 +0000 (12:52 +0200)]
Move gpgwrapper aside

12 years agoDead import
Peter Palfrader [Sat, 21 May 2011 10:49:24 +0000 (12:49 +0200)]
Dead import

12 years agoGet rid of tabs
Peter Palfrader [Sat, 21 May 2011 10:40:20 +0000 (12:40 +0200)]
Get rid of tabs

13 years agoUpdate changelog
Peter Palfrader [Fri, 25 Mar 2011 19:03:41 +0000 (20:03 +0100)]
Update changelog

13 years agoHandle sync keyring *dirs*
Peter Palfrader [Fri, 25 Mar 2011 19:03:05 +0000 (20:03 +0100)]
Handle sync keyring *dirs*

13 years agoLock ud-generate process
Peter Palfrader [Fri, 25 Mar 2011 18:58:45 +0000 (19:58 +0100)]
Lock ud-generate process

13 years agoTry to cut down a bit on global state
Peter Palfrader [Fri, 25 Mar 2011 18:55:48 +0000 (19:55 +0100)]
Try to cut down a bit on global state

13 years agoUse GlobalDir instead of GenerateDir in one place
Peter Palfrader [Fri, 25 Mar 2011 17:59:47 +0000 (18:59 +0100)]
Use GlobalDir instead of GenerateDir in one place

13 years agoDo not mess with sudo passwords if nothing changed
Peter Palfrader [Mon, 28 Feb 2011 21:45:48 +0000 (22:45 +0100)]
Do not mess with sudo passwords if nothing changed

13 years agoMerge branch 'master' of ssh://db.debian.org/git/userdir-ldap
Peter Palfrader [Wed, 2 Feb 2011 20:56:25 +0000 (21:56 +0100)]
Merge branch 'master' of ssh://db.debian.org/git/userdir-ldap

* 'master' of ssh://db.debian.org/git/userdir-ldap:
  Minor changes from Holger (<201102021122.16183.holger@layer-acht.org>) Signed-off-by: Martin Zobel-Helas <zobel@debian.org>

13 years agosay a word about subjects in mail to admin@db
Peter Palfrader [Wed, 2 Feb 2011 20:56:19 +0000 (21:56 +0100)]
say a word about subjects in mail to admin@db

13 years agoMinor changes from Holger (<201102021122.16183.holger@layer-acht.org>)
Martin Zobel-Helas [Wed, 2 Feb 2011 11:02:39 +0000 (12:02 +0100)]
Minor changes from Holger (<201102021122.16183.holger@layer-acht.org>)
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
13 years agoud-mailgate: Make updating of gender actually work
Peter Palfrader [Wed, 5 Jan 2011 08:53:29 +0000 (09:53 +0100)]
ud-mailgate: Make updating of gender actually work

13 years ago* Uploading/Non-Uploading DDs
Martin Zobel-Helas [Thu, 23 Dec 2010 16:59:42 +0000 (17:59 +0100)]
* Uploading/Non-Uploading DDs
* remove superfluous "and"
* SSH fingerprints of the machines
* Debian CA
* mention debian-infrastructure-announce
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
13 years agoThis is some fine documentation
Martin Zobel-Helas [Wed, 22 Dec 2010 22:14:11 +0000 (23:14 +0100)]
This is some fine documentation
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
13 years agoud-gpgimport: handle guest keyrings
Peter Palfrader [Wed, 20 Oct 2010 11:41:23 +0000 (11:41 +0000)]
ud-gpgimport: handle guest keyrings

ud-gpgimport so far used a single list of keyrings, and it expected all
keys from that keyring to be in ldap, and to have all users in ldap a
key in those keyrings.

Now ud-gpgimport has a notion of the guest-keyring.  It still expects
all keys from the "main" keyring to be in ldap, but not all keys from
the guest (DM and guest) keyrings need to have accounts.  An account
with a key associated to it is OK as long as it has a key in any of
the keyrings.

13 years agoUpdate guest welcome template
Peter Palfrader [Sun, 19 Sep 2010 00:00:02 +0000 (02:00 +0200)]
Update guest welcome template

13 years agoRemove .pgp (v3 pgp key) keyrings from config
Peter Palfrader [Sat, 18 Sep 2010 23:44:42 +0000 (01:44 +0200)]
Remove .pgp (v3 pgp key) keyrings from config

13 years agoud-useradd: A new -g switch for adding guest accounts
Peter Palfrader [Sat, 18 Sep 2010 23:42:15 +0000 (01:42 +0200)]
ud-useradd: A new -g switch for adding guest accounts

ud-useradd: A new -g switch for adding guest accounts, with proper
setting hostacls and shadowexpire and picking the right keyring.

13 years agoUpdate changelog
Peter Palfrader [Sat, 18 Sep 2010 23:41:10 +0000 (01:41 +0200)]
Update changelog

13 years agoAdd a -h for ud-useradd
Peter Palfrader [Sat, 18 Sep 2010 23:09:56 +0000 (01:09 +0200)]
Add a -h for ud-useradd

13 years agoTeach ud-generate about host ACLs that expire
Peter Palfrader [Sat, 18 Sep 2010 23:01:54 +0000 (01:01 +0200)]
Teach ud-generate about host ACLs that expire

13 years agoAllow - in usernames
Peter Palfrader [Wed, 15 Sep 2010 15:47:33 +0000 (17:47 +0200)]
Allow - in usernames

13 years agoimport fixing
Peter Palfrader [Wed, 15 Sep 2010 10:52:06 +0000 (12:52 +0200)]
import fixing

13 years agoAdd ud-sync-accounts-to-afs, a script to sync accounts to an AFS protection database
Peter Palfrader [Wed, 15 Sep 2010 10:49:26 +0000 (12:49 +0200)]
Add ud-sync-accounts-to-afs, a script to sync accounts to an AFS protection database

13 years agoFix ud-generate to create all-accounts.json in the right place
Peter Palfrader [Tue, 14 Sep 2010 21:10:15 +0000 (23:10 +0200)]
Fix ud-generate to create all-accounts.json in the right place

13 years agodev tree changelog
Peter Palfrader [Mon, 13 Sep 2010 17:14:33 +0000 (19:14 +0200)]
dev tree changelog

13 years agoud-generate: Add an extra output file called all-users.json userdir-ldap-0.3.78
Peter Palfrader [Mon, 13 Sep 2010 17:08:19 +0000 (19:08 +0200)]
ud-generate: Add an extra output file called all-users.json

That file can be used on one of the AFS hosts to create afs users.

13 years agoAdd ud-krb-reset, and make ud-mailgate call it when receiving a mail at chpasswd...
Peter Palfrader [Fri, 10 Sep 2010 12:53:44 +0000 (14:53 +0200)]
Add ud-krb-reset, and make ud-mailgate call it when receiving a mail at chpasswd@ saying 'Please change my Kerberos password'.

13 years agoud-mailgate: minor refactoring
Peter Palfrader [Fri, 10 Sep 2010 12:20:20 +0000 (14:20 +0200)]
ud-mailgate:  minor refactoring

13 years agoFix ACL rule for keyring maintainers
Peter Palfrader [Wed, 11 Aug 2010 09:12:36 +0000 (11:12 +0200)]
Fix ACL rule for keyring maintainers

13 years agoA class shouldn't write to stderr on error, it should throw an exception
Peter Palfrader [Mon, 2 Aug 2010 23:48:02 +0000 (23:48 +0000)]
A class shouldn't write to stderr on error, it should throw an exception

13 years agoupdate debian/changelog
Peter Palfrader [Mon, 2 Aug 2010 23:36:03 +0000 (23:36 +0000)]
update debian/changelog

13 years agoMerge branch 'refactor-udgen'
Peter Palfrader [Mon, 2 Aug 2010 23:33:12 +0000 (23:33 +0000)]
Merge branch 'refactor-udgen'

* refactor-udgen: (24 commits)
  Get rid of global variable PasswdAttrs
  GenBSMTP
  GenDNS
  GenPasswd
  GenShadow
  Do not forget that passwords start with {crypt}
  GenShadowSudo
  GenSSHShadow
  fix not-array-value-but-multiple-values check
  GenGroup partially
  GenForward
  GenCDB
  And GenMailList
  whitespace fixes
  And GenMailBool
  Let disable-main-msg generation use Account class
  Let disabled-users generation use Account class
  Let private generation use Account class
  Catch the case where attributes that are not declared as an array value have more than one value.  This indicates a bug in the data, code, or ldap schema
  Some improvement over the last path
  ...

13 years agoGet rid of global variable PasswdAttrs
Peter Palfrader [Mon, 2 Aug 2010 23:30:03 +0000 (23:30 +0000)]
Get rid of global variable PasswdAttrs

13 years agoGenBSMTP
Peter Palfrader [Mon, 2 Aug 2010 23:11:30 +0000 (23:11 +0000)]
GenBSMTP

13 years agoGenDNS
Peter Palfrader [Mon, 2 Aug 2010 22:15:35 +0000 (22:15 +0000)]
GenDNS