From: Peter Palfrader Date: Thu, 10 Jan 2008 13:10:58 +0000 (+0100) Subject: Merge from alioth X-Git-Tag: userdir-ldap-0.3.16~19 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=1869ceb94928a76f23188d0b9939327c3a8dd7b9;hp=efc48e4f01ce7f402a4c793727bf776bcf083c05 Merge from alioth merge r356 from alioth's userdir-ldap-common, and cherry pick that fix onto that: committer: Mark Hymers branch nick: userdir-ldap-common timestamp: Thu 2008-01-10 12:58:39 +0000 message: Fix mistake in ud-userimport add logic spotted by Peter Palfrader. --- diff --git a/debian/changelog b/debian/changelog index 382e859..ee25ccc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,16 @@ userdir-ldap (0.3.15+xxx) XXunstable; urgency=low * Change the build dependency on python-support to be versioned >= 0.3. * ud-roleadd: Do not try to make role accounts of objectClass inetOrgPerson, that doesn't work. + * ud-fingerserv: implement daemonize() for non-inetd mode [sgran]. + * ud-useradd: support usergroups [HE]. + * ud-host/userdir-ldap.schema: Add 'purpose', 'physicalHost' to + debianServer schema and teach ud-host about [HE]. + * ud-host: cleanup: Replace local copy HBaseDn of the centrally + configured HostBaseDn [HE]. + * Add myself to uploaders. + * ud-generate: Set shadow expiry to 1 for locked accounts [mhy]. + * update doc/slapd-config.txt: labeledURL was removed from the schema but + not the slapd.conf example. Do that now [mhy]. [ Mark Hymers ] * ud-userimport, ud-groupadd, ud-roleadd, ud-useradd, userdir_ldap.py: diff --git a/debian/control b/debian/control index 869a526..4639a48 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Maintainer: Debian Administration team Build-Depends: debhelper (>= 5), python-support (>= 0.3) Standards-Version: 3.5.8.0 -Uploaders: Ryan Murray +Uploaders: Ryan Murray , Peter Palfrader Package: userdir-ldap Architecture: all diff --git a/ud-fingerserv b/ud-fingerserv index 42b8239..1c977d8 100755 --- a/ud-fingerserv +++ b/ud-fingerserv @@ -61,9 +61,12 @@ if (!$use_inetd) { chdir '/' or die "Can't chdir to /: $!"; open STDIN, '/dev/null' or die "Can't read /dev/null: $!"; open STDOUT, '>/dev/null' or die "Can't write to /dev/null: $!"; - defined(my $pid = fork) or die "Can't fork: $!"; + my $pid; + defined($pid = fork) or die "Can't fork: $!"; exit if $pid; setsid or die "Can't start a new session: $!"; + defined($pid = fork) or die "Can't fork: $!"; + exit if $pid; open STDERR, '>&STDOUT' or die "Can't dup stdout: $!"; } diff --git a/ud-userimport b/ud-userimport index 4a21daf..aa580fa 100755 --- a/ud-userimport +++ b/ud-userimport @@ -111,8 +111,8 @@ def DoPasswd(l,Passwd): if (DoAdd == 1): try: - AddRec = Rec - Rec.append(("objectClass", UserObjectClasses)) + AddRec = Rec[:] + AddRec.append(("objectClass", UserObjectClasses)) l.add_s(Dn,AddRec) DoModify = False