mirror/userdir-ldap.git
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

13 years agoGenPasswd
Peter Palfrader [Mon, 2 Aug 2010 22:05:41 +0000 (22:05 +0000)]
GenPasswd

13 years agoGenShadow
Peter Palfrader [Mon, 2 Aug 2010 21:55:14 +0000 (21:55 +0000)]
GenShadow

13 years agoDo not forget that passwords start with {crypt}
Peter Palfrader [Mon, 2 Aug 2010 21:37:50 +0000 (21:37 +0000)]
Do not forget that passwords start with {crypt}

13 years agoGenShadowSudo
Peter Palfrader [Mon, 2 Aug 2010 21:35:07 +0000 (21:35 +0000)]
GenShadowSudo

13 years agoGenSSHShadow
Peter Palfrader [Mon, 2 Aug 2010 21:31:04 +0000 (21:31 +0000)]
GenSSHShadow

13 years agofix not-array-value-but-multiple-values check
Peter Palfrader [Mon, 2 Aug 2010 21:28:31 +0000 (21:28 +0000)]
fix not-array-value-but-multiple-values check

13 years agoGenGroup partially
Peter Palfrader [Mon, 2 Aug 2010 21:19:41 +0000 (21:19 +0000)]
GenGroup partially

13 years agoGenForward
Peter Palfrader [Mon, 2 Aug 2010 21:14:08 +0000 (21:14 +0000)]
GenForward

13 years agoGenCDB
Peter Palfrader [Mon, 2 Aug 2010 21:11:37 +0000 (21:11 +0000)]
GenCDB

13 years agoAnd GenMailList
Peter Palfrader [Mon, 2 Aug 2010 21:06:55 +0000 (21:06 +0000)]
And GenMailList

13 years agowhitespace fixes
Peter Palfrader [Mon, 2 Aug 2010 20:52:29 +0000 (20:52 +0000)]
whitespace fixes

13 years agoAnd GenMailBool
Peter Palfrader [Mon, 2 Aug 2010 20:51:50 +0000 (20:51 +0000)]
And GenMailBool

13 years agoLet disable-main-msg generation use Account class
Peter Palfrader [Mon, 2 Aug 2010 20:37:31 +0000 (20:37 +0000)]
Let disable-main-msg generation use Account class

13 years agoLet disabled-users generation use Account class
Peter Palfrader [Mon, 2 Aug 2010 20:35:49 +0000 (20:35 +0000)]
Let disabled-users generation use Account class

13 years agohave a proper distribution userdir-ldap-0.3.77
Martin Zobel-Helas [Mon, 2 Aug 2010 20:35:38 +0000 (22:35 +0200)]
have a proper distribution

13 years agorelease 0.3.77
Martin Zobel-Helas [Mon, 2 Aug 2010 20:33:53 +0000 (22:33 +0200)]
release 0.3.77

13 years agoLet private generation use Account class
Peter Palfrader [Mon, 2 Aug 2010 20:23:53 +0000 (20:23 +0000)]
Let private generation use Account class

13 years agoCatch the case where attributes that are not declared as an array value have more...
Peter Palfrader [Mon, 2 Aug 2010 20:14:40 +0000 (20:14 +0000)]
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

13 years agoSome improvement over the last path
Peter Palfrader [Mon, 2 Aug 2010 20:12:10 +0000 (20:12 +0000)]
Some improvement over the last path

13 years agoLet markers generation use Account class
Peter Palfrader [Mon, 2 Aug 2010 20:06:12 +0000 (20:06 +0000)]
Let markers generation use Account class

13 years agogive Account class a __getitem__ method and use it
Peter Palfrader [Mon, 2 Aug 2010 19:58:10 +0000 (19:58 +0000)]
give Account class a __getitem__ method and use it

13 years agoLet Account have a constructor that is more useful in generate
Peter Palfrader [Mon, 2 Aug 2010 19:34:41 +0000 (19:34 +0000)]
Let Account have a constructor that is more useful in generate

13 years agooptionally read some configuration items from the environment so we can test ud-gener...
Peter Palfrader [Mon, 2 Aug 2010 19:17:07 +0000 (19:17 +0000)]
optionally read some configuration items from the environment so we can test ud-generate without running it as sshdist

13 years agoud-generate: refuse to run as root
Peter Palfrader [Fri, 30 Jul 2010 17:47:04 +0000 (19:47 +0200)]
ud-generate: refuse to run as root

13 years agodebian/changelog update
Peter Palfrader [Tue, 1 Jun 2010 15:22:57 +0000 (17:22 +0200)]
debian/changelog update

13 years agoGive keyring-maint write access to keyFingerPrint
Faidon Liambotis [Mon, 31 May 2010 14:38:21 +0000 (17:38 +0300)]
Give keyring-maint write access to keyFingerPrint

However, make an exception for supplementaryGid=adm users for security
reasons (wouldn't want keyring-maint to be able to takeover a root
account).

The ACL gives writes to a non-existing group; this should be created,
e.g.
  cn=Keyring Maintainers,ou=users,dc=debian,dc=org
  objectClass: top
  objectClass: groupOfNames
  cn: Keyring Maintainers
  member: uid=noodles,ou=users,dc=debian,dc=org
  member: uid=gwolf,ou=users,dc=debian,dc=org

Signed-off-by: Peter Palfrader <peter@palfrader.org>
13 years agolabeledURI, ircNick, icqUIN, jabberJID are all exposed via finger anyway. No need...
Peter Palfrader [Tue, 1 Jun 2010 15:14:32 +0000 (17:14 +0200)]
labeledURI, ircNick, icqUIN, jabberJID are all exposed via finger anyway.  No need to restrict them to d.o hosts

13 years agoRemove redundant attributes: loginShell and onVacation were already matched by the...
Peter Palfrader [Tue, 1 Jun 2010 15:11:50 +0000 (17:11 +0200)]
Remove redundant attributes: loginShell and onVacation were already matched by the read-from-d.o ACL

13 years agocommenta update
Peter Palfrader [Tue, 1 Jun 2010 15:10:05 +0000 (17:10 +0200)]
commenta update

13 years agosshrsaauthkey is only readble by self. everyone else does not even get to compare it
Peter Palfrader [Tue, 1 Jun 2010 15:05:49 +0000 (17:05 +0200)]
sshrsaauthkey is only readble by self.  everyone else does not even get to compare it

13 years agocomment update
Peter Palfrader [Tue, 1 Jun 2010 15:03:15 +0000 (17:03 +0200)]
comment update

13 years agoMerge remaining d.o readable attributes into one ACL
Peter Palfrader [Tue, 1 Jun 2010 15:02:45 +0000 (17:02 +0200)]
Merge remaining d.o readable attributes into one ACL

13 years agoBreak out self-writable attributes to their own ACL
Peter Palfrader [Tue, 1 Jun 2010 15:00:24 +0000 (17:00 +0200)]
Break out self-writable attributes to their own ACL

13 years agocomment update
Peter Palfrader [Tue, 1 Jun 2010 14:59:08 +0000 (16:59 +0200)]
comment update

13 years agoMinor simplification of slapd.conf's ACLs
Faidon Liambotis [Thu, 27 May 2010 22:20:22 +0000 (01:20 +0300)]
Minor simplification of slapd.conf's ACLs

Avoid repetition of the rule that allows cn=LDAP Administrator and uid=sshdist
to write to every attribute by taking advantage of the "break" control
field.

Signed-off-by: Peter Palfrader <peter@palfrader.org>
13 years agoFix a typo in welcome-message-800 noticed by Tommi Vainikainen
Peter Palfrader [Sun, 9 May 2010 16:04:04 +0000 (18:04 +0200)]
Fix a typo in welcome-message-800 noticed by Tommi Vainikainen

14 years agoprototype code for sshfp generation for services
Stephen Gran [Sun, 28 Mar 2010 09:38:27 +0000 (09:38 +0000)]
prototype code for sshfp generation for services

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agoMaybe fix ud-mailgate
Peter Palfrader [Mon, 15 Mar 2010 20:13:26 +0000 (21:13 +0100)]
Maybe fix ud-mailgate

14 years agosome changelog entries for today's work
Stephen Gran [Sun, 14 Mar 2010 14:01:12 +0000 (14:01 +0000)]
some changelog entries for today's work

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agogratuitous code style change
Stephen Gran [Sun, 14 Mar 2010 13:56:04 +0000 (13:56 +0000)]
gratuitous code style change

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agoadd txt record support
Stephen Gran [Sun, 14 Mar 2010 13:54:46 +0000 (13:54 +0000)]
add txt record support

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agowrite one identifying txt entry per host, if it has an a or aaaa record
Stephen Gran [Sun, 14 Mar 2010 13:33:15 +0000 (13:33 +0000)]
write one identifying txt entry per host, if it has an a or aaaa record

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agodrop some dead code
Stephen Gran [Sun, 14 Mar 2010 13:17:19 +0000 (13:17 +0000)]
drop some dead code

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agoProbably should only delete keyFingerPrint if it exists
Peter Palfrader [Thu, 11 Mar 2010 21:23:35 +0000 (22:23 +0100)]
Probably should only delete keyFingerPrint if it exists

14 years agoAdd ud-lock
Peter Palfrader [Thu, 11 Mar 2010 21:19:23 +0000 (22:19 +0100)]
Add ud-lock

ud-lock, non-interactively, sets a great many accounts to
'retiring', locking their password, removing keys, setting shadow
information to expired and setting accountstatus appropriatly.

14 years agoud-gpgimport: Get rid of "0x" when printing keyids/fingerprints.
Peter Palfrader [Sun, 31 Jan 2010 12:57:10 +0000 (13:57 +0100)]
ud-gpgimport: Get rid of "0x" when printing keyids/fingerprints.

14 years agoA set of copyright headers
Peter Palfrader [Sun, 31 Jan 2010 12:56:17 +0000 (13:56 +0100)]
A set of copyright headers

14 years agoud-mailgate: fix gpg result usage
Peter Palfrader [Sun, 31 Jan 2010 09:13:57 +0000 (10:13 +0100)]
ud-mailgate: fix gpg result usage

We use the result of the pgp check for quite a long time in the main
program.  Give it its own variable instead of using Res which was
overwritten a bit later.  Also make a new gpgcheck2 class that allows us
to access the values of the gpg signature check in a saner way.

14 years agoud-mailgate: Remove a global declaration after a variable has already been assigned...
Peter Palfrader [Sun, 31 Jan 2010 09:12:20 +0000 (10:12 +0100)]
ud-mailgate: Remove a global declaration after a variable has already been assigned globally.

14 years agoFix changelog
Peter Palfrader [Sun, 31 Jan 2010 09:11:43 +0000 (10:11 +0100)]
Fix changelog

14 years agofinalize changelog for release userdir-ldap-0.3.76
Stephen Gran [Sat, 30 Jan 2010 13:35:49 +0000 (13:35 +0000)]
finalize changelog for release

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agoadd trailing newline to ssh files
Stephen Gran [Sat, 30 Jan 2010 13:32:02 +0000 (13:32 +0000)]
add trailing newline to ssh files

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agodo not accept invalid allowed_hosts for ssh keys
Helmut Grohne [Sat, 23 Jan 2010 16:20:12 +0000 (17:20 +0100)]
do not accept invalid allowed_hosts for ssh keys

Check them against a list ValidHostNames that is generated during
startup.

14 years agoadded a bug report comment
Helmut Grohne [Fri, 22 Jan 2010 23:26:07 +0000 (00:26 +0100)]
added a bug report comment

14 years agomade ud-generate support new ssh key syntax
Helmut Grohne [Sat, 23 Jan 2010 13:15:52 +0000 (14:15 +0100)]
made ud-generate support new ssh key syntax

14 years agowrite machine specifications for ssh keys to ldap
Helmut Grohne [Fri, 22 Jan 2010 22:51:24 +0000 (23:51 +0100)]
write machine specifications for ssh keys to ldap

14 years agoparse machine specifications for ssh keys
Helmut Grohne [Fri, 22 Jan 2010 22:35:48 +0000 (23:35 +0100)]
parse machine specifications for ssh keys

Ssh keys can now be prepended with a string
"allowed_hosts=machine1,machine2 ". Machine names are restricted to
sane characters. This patch only adds the parsing and throws away the
result.

14 years agoInclude a host in DNS even if we do not have both ssh keys and an arch for that host...
Peter Palfrader [Fri, 22 Jan 2010 19:16:10 +0000 (20:16 +0100)]
Include a host in DNS even if we do not have both ssh keys and an arch for that host configured

14 years agoud-generate: move the regex that determines whether or not to include a host in the...
Peter Palfrader [Sat, 9 Jan 2010 15:51:11 +0000 (16:51 +0100)]
ud-generate: move the regex that determines whether or not to include a host in the dns-sshfp zone snippet (for SSHFP and A, AAAA and MX records) to the config file.

14 years agoud-useradd: Properly encode realname in subjects and to header lines regardless of...
Peter Palfrader [Sat, 9 Jan 2010 11:01:38 +0000 (12:01 +0100)]
ud-useradd: Properly encode realname in subjects and to header lines regardless of which template is being used

14 years agoFix welcome-message to be like welcome-message-800 and 60000 wrt email headers
Peter Palfrader [Sat, 9 Jan 2010 01:10:34 +0000 (02:10 +0100)]
Fix welcome-message to be like welcome-message-800 and 60000 wrt email headers

14 years agoud-useradd: Only ask for private subscription if this installation has a debian-priva...
Peter Palfrader [Fri, 8 Jan 2010 23:27:37 +0000 (00:27 +0100)]
ud-useradd: Only ask for private subscription if this installation has a debian-private like mailinglist whose membership is configured by ud-ldap.  (defaults to true.)

14 years agoud-useradd: Fix usergroup support: Move ldap call to actually add the user to the...
Peter Palfrader [Fri, 8 Jan 2010 23:20:16 +0000 (00:20 +0100)]
ud-useradd: Fix usergroup support: Move ldap call to actually add the user to the right place, properly compare strings and numbers.

14 years agoud-useradd: If we do not have a template for a specific group, use the general purpos...
Peter Palfrader [Fri, 8 Jan 2010 23:16:37 +0000 (00:16 +0100)]
ud-useradd: If we do not have a template for a specific group, use the general purpose template file (welcome-message).

14 years agoFix changelog: mention which tool we modified
Peter Palfrader [Fri, 8 Jan 2010 23:15:51 +0000 (00:15 +0100)]
Fix changelog: mention which tool we modified

14 years agoExport groups even if nobody has that group as a supplementary group, as long as...
Peter Palfrader [Fri, 8 Jan 2010 22:25:49 +0000 (23:25 +0100)]
Export groups even if nobody has that group as a supplementary group, as long as there are users that have it as a primary group

14 years agomake a stab at really not exporting empty groups userdir-ldap-0.3.75
Stephen Gran [Tue, 8 Dec 2009 11:31:27 +0000 (11:31 +0000)]
make a stab at really not exporting empty groups

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agonew release changelog started
Stephen Gran [Mon, 16 Nov 2009 00:20:14 +0000 (00:20 +0000)]
new release changelog started

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agodefault anti-spam options
Stephen Gran [Sun, 15 Nov 2009 23:27:38 +0000 (23:27 +0000)]
default anti-spam options

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agospot the obvious typo
Stephen Gran [Sun, 15 Nov 2009 20:32:27 +0000 (20:32 +0000)]
spot the obvious typo

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agoand update ldap schema and acls appropriately. *cough*
Stephen Gran [Sun, 15 Nov 2009 15:18:40 +0000 (15:18 +0000)]
and update ldap schema and acls appropriately.  *cough*

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agorelease userdir-ldap-0.3.74
Stephen Gran [Sun, 15 Nov 2009 15:03:30 +0000 (15:03 +0000)]
release

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agochangelog for new mail forward file
Stephen Gran [Sun, 15 Nov 2009 11:55:06 +0000 (11:55 +0000)]
changelog for new mail forward file

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agoInitial support for BATV token storage.
Stephen Gran [Sun, 15 Nov 2009 11:54:21 +0000 (11:54 +0000)]
Initial support for BATV token storage.

14 years agogenerate a new file for mail forwards for users present on this machine
Stephen Gran [Sun, 8 Nov 2009 18:47:48 +0000 (18:47 +0000)]
generate a new file for mail forwards for users present on this machine

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agoprepare to reuse GenCDB with a shorter list of users
Stephen Gran [Sun, 8 Nov 2009 18:38:00 +0000 (18:38 +0000)]
prepare to reuse GenCDB with a shorter list of users

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agospot the obvious typo - I wonder why the serial has been incrementing like mad
Stephen Gran [Sun, 25 Oct 2009 17:43:28 +0000 (17:43 +0000)]
spot the obvious typo - I wonder why the serial has been incrementing like mad

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agowelcome-message-60000: improve wording of a sentence. Sometimes less is more.
Peter Palfrader [Sun, 25 Oct 2009 15:59:08 +0000 (16:59 +0100)]
welcome-message-60000: improve wording of a sentence.  Sometimes less is more.

14 years agoud-generate: Make sure we only add people in gid 800 to debian-private.
Peter Palfrader [Sun, 25 Oct 2009 15:41:17 +0000 (16:41 +0100)]
ud-generate: Make sure we only add people in gid 800 to debian-private.

DebianUsers was just a copy of PasswdAttrs.  So use PasswdAttrs in all
the places that currently use DebianUsers.  Make a filtered list
DebianDDUsers (accounts in gid 800), and use that for building the
debian-private subscription list.

14 years agoAdd dnsTTL host attribute to override the zone default TTL for A and AAAA records... userdir-ldap-0.3.73
Peter Palfrader [Sun, 18 Oct 2009 10:44:55 +0000 (12:44 +0200)]
Add dnsTTL host attribute to override the zone default TTL for A and AAAA records.  Also for MX, HINFO and SSHFP

14 years agoMake zone reloads work when ud-generate updates zone files userdir-ldap-0.3.72
Stephen Gran [Sun, 4 Oct 2009 23:55:09 +0000 (00:55 +0100)]
Make zone reloads work when ud-generate updates zone files

14 years agomake ud-replicate work slightly more accurately for zones
Stephen Gran [Sun, 4 Oct 2009 23:53:47 +0000 (00:53 +0100)]
make ud-replicate work slightly more accurately for zones

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agoAdd sshdistAuthKeysHost
Peter Palfrader [Tue, 22 Sep 2009 19:53:14 +0000 (21:53 +0200)]
Add sshdistAuthKeysHost

We autogenerate the authorized_keys files for sshdist on db-master.  It
limits the hosts' ssh key to coming from their respective addresses.
Now we can add additional source addresses to accept for this since not
all hosts appear to come from their published address (or have a
published address for that matter).

14 years agoIf we use accountstatus in debianGroup we need to re-order stuff
Peter Palfrader [Tue, 22 Sep 2009 19:47:31 +0000 (21:47 +0200)]
If we use accountstatus in debianGroup we need to re-order stuff

14 years agoud-generate: don't blow up when a host does not have IP-addresses
Peter Palfrader [Tue, 22 Sep 2009 19:33:05 +0000 (21:33 +0200)]
ud-generate: don't blow up when a host does not have IP-addresses

14 years agoahem. Use the right attribute
Stephen Gran [Sun, 20 Sep 2009 16:07:14 +0000 (17:07 +0100)]
ahem.  Use the right attribute

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agoallow groups to be disabled but kept in ldap: addresses RT #977
Stephen Gran [Sun, 20 Sep 2009 15:42:55 +0000 (16:42 +0100)]
allow groups to be disabled but kept in ldap: addresses RT #977

Signed-off-by: Stephen Gran <steve@lobefin.net>
14 years agoTweak templates/welcome-message-60000.
Peter Palfrader [Wed, 9 Sep 2009 17:29:48 +0000 (19:29 +0200)]
Tweak templates/welcome-message-60000.

14 years agoMerge branch 'master' of ssh://db.debian.org/git/userdir-ldap
Peter Palfrader [Wed, 9 Sep 2009 17:21:30 +0000 (19:21 +0200)]
Merge branch 'master' of ssh://db.debian.org/git/userdir-ldap

* 'master' of ssh://db.debian.org/git/userdir-ldap:
  Add debian-maintainers.gpg to keyrings and sync_keyrings.
  cast objects to strings (rt #1717)

Conflicts:

debian/changelog

14 years agoud-useradd: force gidNumber to be an int when we open the welcome
Peter Palfrader [Wed, 9 Sep 2009 17:20:37 +0000 (19:20 +0200)]
ud-useradd: force gidNumber to be an int when we open the welcome
template (it can be different when we read it from input using -n).