--- ldapscripts-1.8.0.orig/debian/docs +++ ldapscripts-1.8.0/debian/docs @@ -0,0 +1,2 @@ +README +TODO --- ldapscripts-1.8.0.orig/debian/dirs +++ ldapscripts-1.8.0/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin --- ldapscripts-1.8.0.orig/debian/changelog +++ ldapscripts-1.8.0/debian/changelog @@ -0,0 +1,70 @@ +ldapscripts (1.8.0-0ubuntu1) intrepid; urgency=low + + * New Upstream release. + * Fixes LP #49007, LP #114006, LP #126759, and LP #256091. + + -- Adam Sommer Tue, 26 Aug 2008 00:31:28 -0400 + +ldapscripts (1.7.1-2ubuntu1) hardy; urgency=low + + * Adding --help and -h to all scripts; shows usage. (LP: #177051) + - Enabled simple-patchsys in debian/rules + - Added debian/patches/help-options.patch + * Modify Maintainer value to match the DebianMaintainerField + specification. + * Standards-Version changed to 3.7.3 + - Added Homepage field to debian/control + + -- Andreas Wenning Sat, 23 Feb 2008 15:09:03 +0100 + +ldapscripts (1.7.1-2) unstable; urgency=low + + * New upstream release: + + Has the fix for CVE-2007-5373 (Closes: #445582). + + User can now modify ldiff skeleton (Closes: #405755). + * Make upstream support DESTDIR in its makefile. + + -- Pierre Habouzit Sun, 21 Oct 2007 12:27:03 +0200 + +ldapscripts (1.4-2etch1) stable-security; urgency=low + + [ Steffen Joeris ] + * Incorporate changes from upstream security version 1.7.1 and patch + etc/runtime (Closes: #445582) for CVE-2007-5373. + + -- Pierre Habouzit Sun, 21 Oct 2007 12:03:31 +0200 + +ldapscripts (1.4-2) unstable; urgency=low + + * Fix debian magic computation of GIDSTART/UIDSTART. + thanks to Philippe Bourdeu d'Aguerre. + * Bump standards version to 3.7.2 (no changes required). + + -- Pierre Habouzit Wed, 17 May 2006 11:05:17 +0200 + +ldapscripts (1.4-1) unstable; urgency=low + + * New upstream release. + * Add missing dependency upon sharutils (closes: #340785). + * Updated FSF address. + + -- Pierre Habouzit Sun, 8 Jan 2006 19:13:45 +0100 + +ldapscripts (1.3-1) unstable; urgency=low + + * New upstream release. + + -- Pierre Habouzit Tue, 25 Oct 2005 00:33:31 +0200 + +ldapscripts (1.2-2) unstable; urgency=low + + * Typo in default config (forgot a ldapscripts/). + + -- Pierre Habouzit Sun, 21 Aug 2005 16:53:31 +0200 + +ldapscripts (1.2-1) unstable; urgency=low + + * Initial Release (closes: #324296). + + -- Pierre Habouzit Sun, 21 Aug 2005 16:23:01 +0200 + --- ldapscripts-1.8.0.orig/debian/rules +++ ldapscripts-1.8.0/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk +#DEB_PATCHDIRS := debian/patches + +# documentation +DEB_INSTALL_DOCS_ALL := README VERSION TODO + +# changelogs +DEB_INSTALL_CHANGELOGS_ALL := CHANGELOG + +install/ldapscripts:: + $(MAKE) install DESTDIR=debian/ldapscripts PREFIX=/usr + cp debian/ldapscripts.conf debian/ldapscripts/etc/ldapscripts + +clean:: + rm -f debian/compat --- ldapscripts-1.8.0.orig/debian/control +++ ldapscripts-1.8.0/debian/control @@ -0,0 +1,32 @@ +Source: ldapscripts +Section: admin +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Pierre Habouzit +Build-Depends: cdbs, debhelper +Standards-Version: 3.8.0 +Homepage: http://sourceforge.net/projects/ldapscripts/ + +Package: ldapscripts +Architecture: any +Depends: ${misc:Depends}, ldap-utils, sharutils +Description: Add and remove user and groups (stored in a LDAP directory) + Ldapscripts are shell scripts that allow management of POSIX accounts (users, + groups, machines) in a LDAP directory. They are similar to smbldap-tools + but are written in shellscript, not PERL. + . + They only require OpenLDAP client commands (ldapadd, ldapdelete, ldapsearch, + ldapmodify, ldappasswd) and make administrator's work a lot easier avoiding + the need to configure PERL and each library dependency (e.g. Net::LDAP). + . + These scripts are very simple to configure by not requiring any Samba-related + information (SID, profiles, homes, ...) : management of Samba attributes is + entirely done by standard commands (net, smbpasswd et pdbedit) used together + with the scripts. Moreover, most of the configuration is guessed from the + one of libpam-ldap, and everything should work out from the box for most + users. + . + The scripts may be used independently - within command lines - or + automatically by Samba (like smbldap-tools), to handle POSIX information + within accounts before adding Samba information. + --- ldapscripts-1.8.0.orig/debian/ldapscripts.conf +++ ldapscripts-1.8.0/debian/ldapscripts.conf @@ -0,0 +1,112 @@ +# Copyright (C) 2005 Ganaël LAPLANCHE - Linagora +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, +# USA. + +# LDAP Configuration +SERVER="ldap://localhost" +BINDDN="cn=admin,dc=example,dc=com" +# The following file contains the raw password of the binddn +# Create it with something like : echo -n 'secret' > $BINDPWDFILE +# WARNING !!!! Be careful not to make this file world-readable +BINDPWDFILE="/etc/ldapscripts/ldapscripts.passwd" +# For older versions of OpenLDAP, it is still possible to use +# unsecure command-line passwords by defining the following option +# AND commenting the previous one (BINDPWDFILE takes precedence) +#BINDPWD="secret" + +SUFFIX="dc=example,dc=com" # Global suffix +GSUFFIX="ou=Groups" # Groups ou (just under $SUFFIX) +USUFFIX="ou=Users" # Users ou (just under $SUFFIX) +MSUFFIX="ou=Machines" # Machines ou (just under $SUFFIX) + +# Start with these IDs *if no entry found in LDAP* +GIDSTART="10000" # Group ID +UIDSTART="10000" # User ID +MIDSTART="20000" # Machine ID + +# User properties +USHELL="/bin/sh" +UHOMES="/home/%u" # You may use %u for username here +CREATEHOMES="no" # Create home directories and set rights ? +HOMESKEL="/etc/skel" # Directory where the skeleton files are located. Ignored if undefined or nonexistant. +HOMEPERMS="700" # Default permissions for home directories + +# User passwords generation +# Command-line used to generate a password for added users (you may use %u for username here) +# WARNING !!!! This is evaluated, everything specified here will be run ! +# Special value "" will ask for a password interactively +#PASSWORDGEN="head -c8 /dev/random | uuencode -m - | sed -n '2s|=*$||;2p' | sed -e 's|+||g' -e 's|/||g'" +#PASSWORDGEN="echo changeme" +#PASSWORDGEN="echo %u" +#PASSWORDGEN="" + +# User passwords recording +# you can keep trace of generated passwords setting PASSWORDFILE and RECORDPASSWORDS +# (useful when performing a massive creation / net rpc vampire) +# WARNING !!!! DO NOT FORGET TO DELETE THE GENERATED FILE WHEN DONE ! +# WARNING !!!! DO NOT FORGET TO TURN OFF RECORDING WHEN DONE ! +#RECORDPASSWORDS="no" +#PASSWORDFILE="/var/log/ldapscripts_passwd.log" + +# Where to log +LOGFILE="/var/log/ldapscripts.log" + +# Temporary folder +TMPDIR="/tmp" + +# Various binaries used within the scripts +# Warning : they also use uuencode, date, grep, sed, cut, expr, which... +# Please check they are installed before using these scripts +# Note that many of them should come with your OS + +# OpenLDAP client commands +LDAPSEARCHBIN="/usr/bin/ldapsearch" +LDAPADDBIN="/usr/bin/ldapadd" +LDAPDELETEBIN="/usr/bin/ldapdelete" +LDAPMODIFYBIN="/usr/bin/ldapmodify" +LDAPMODRDNBIN="/usr/bin/ldapmodrdn" +LDAPPASSWDBIN="/usr/bin/ldappasswd" + +# Character set conversion : $ICONVCHAR <-> UTF-8 +# Comment ICONVBIN to disable UTF-8 conversion +ICONVBIN="/usr/bin/iconv" +ICONVCHAR="UTF-8" + +# Base64 decoding +# Comment UUDECODEBIN to disable Base64 decoding +UUDECODEBIN="/usr/bin/uudecode" + +# Getent command to use - choose the ones used +# on your system. Leave blank or comment for auto-guess. +# GNU/Linux +#GETENTPWCMD="getent passwd" +#GETENTGRCMD="getent group" +# FreeBSD +#GETENTPWCMD="pw usershow" +#GETENTGRCMD="pw groupshow" +# Auto +GETENTPWCMD="" +GETENTGRCMD="" + +# You can specify custom LDIF templates here +# Leave empty to use default templates +# See *.template.sample for default templates +#GTEMPLATE="/path/to/ldapaddgroup.template" +#UTEMPLATE="/path/to/ldapadduser.template" +#MTEMPLATE="/path/to/ldapaddmachine.template" +GTEMPLATE="" +UTEMPLATE="" +MTEMPLATE="" --- ldapscripts-1.8.0.orig/debian/copyright +++ ldapscripts-1.8.0/debian/copyright @@ -0,0 +1,26 @@ +This package was debianized by Adam Sommer on +Sun, 17 Aug 2008 15:51:10 -0400. + +It was downloaded from + +Upstream Author: Ganaël LAPLANCHE + +Copyright: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software Foundation, Inc., + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- ldapscripts-1.8.0.orig/debian/patches/01-makefile-destdir.patch +++ ldapscripts-1.8.0/debian/patches/01-makefile-destdir.patch @@ -0,0 +1,82 @@ +diff -Nur -x '*.orig' -x '*~' ldapscripts-1.8.0/Makefile ldapscripts-1.8.0.new/Makefile +--- ldapscripts-1.8.0/Makefile 2008-08-10 05:54:38.000000000 -0400 ++++ ldapscripts-1.8.0.new/Makefile 2008-08-18 20:20:09.000000000 -0400 +@@ -18,7 +18,7 @@ + # USA. + + # Configuration / variables section +-PREFIX = /usr/local ++PREFIX = /usr + + # Identity + SHELL=/bin/sh +@@ -29,7 +29,7 @@ + # Default installation paths + SBINDIR = $(PREFIX)/sbin + MANDIR = $(PREFIX)/man +-ETCDIR = $(PREFIX)/etc/$(NAME) ++ETCDIR = /etc/$(NAME) + LIBDIR = $(PREFIX)/lib/$(NAME) + + # Files to install +@@ -92,44 +92,44 @@ + install: installsbin installman installetc installlib + installsbin: configure + @echo -n 'Installing scripts into $(SBINDIR)... ' +- @install -d -m 755 '$(SBINDIR)' 2>/dev/null ++ @install -d -m 755 '$(DESTDIR)$(SBINDIR)' 2>/dev/null + @for i in $(SBINFILES) ; do \ +- install -m 750 "sbin/$$i.patched" "$(SBINDIR)/$$i" ; \ ++ install -m 750 "sbin/$$i.patched" "$(DESTDIR)$(SBINDIR)/$$i" ; \ + done + @echo 'ok.' + + installman: + @echo -n 'Installing man files into $(MANDIR)... ' +- @install -d -m 755 '$(MANDIR)/man1' 2>/dev/null ++ @install -d -m 755 '$(DESTDIR)$(MANDIR)/man1' 2>/dev/null + @for i in $(MAN1FILES) ; do \ +- cat "man/man1/$$i" | gzip - > "$(MANDIR)/man1/`basename $$i`.gz" ; \ ++ cat "man/man1/$$i" | gzip - > "$(DESTDIR)$(MANDIR)/man1/`basename $$i`.gz" ; \ + done +- @install -d -m 755 '$(MANDIR)/man5' 2>/dev/null ++ @install -d -m 755 '$(DESTDIR)$(MANDIR)/man5' 2>/dev/null + @for i in $(MAN5FILES) ; do \ +- cat "man/man5/$$i" | gzip - > "$(MANDIR)/man5/`basename $$i`.gz" ; \ ++ cat "man/man5/$$i" | gzip - > "$(DESTDIR)$(MANDIR)/man5/`basename $$i`.gz" ; \ + done + @echo 'ok.' + + installetc: configure + @echo -n 'Installing configuration files into $(ETCDIR)... ' +- @install -d -m 755 '$(ETCDIR)' 2>/dev/null +- @install -m 440 'etc/$(ETCFILE).patched' '$(ETCDIR)/$(ETCFILE).sample' +- @if [ ! -f '$(ETCDIR)/$(ETCFILE)' ]; then \ +- install -m 640 '$(ETCDIR)/$(ETCFILE).sample' '$(ETCDIR)/$(ETCFILE)'; \ ++ @install -d -m 755 '$(DESTDIR)$(ETCDIR)' 2>/dev/null ++ @install -m 440 'etc/$(ETCFILE).patched' '$(DESTDIR)$(ETCDIR)/$(ETCFILE).sample' ++ @if [ ! -f '$(DESTDIR)$(ETCDIR)/$(ETCFILE)' ]; then \ ++ install -m 640 '$(DESTDIR)$(ETCDIR)/$(ETCFILE).sample' '$(DESTDIR)$(ETCDIR)/$(ETCFILE)'; \ + fi +- @install -m 440 -b 'etc/$(PWDFILE)' '$(ETCDIR)/$(PWDFILE).sample' +- @if [ ! -f '$(ETCDIR)/$(PWDFILE)' ]; then \ +- install -m 640 '$(ETCDIR)/$(PWDFILE).sample' '$(ETCDIR)/$(PWDFILE)'; \ ++ @install -m 440 -b 'etc/$(PWDFILE)' '$(DESTDIR)$(ETCDIR)/$(PWDFILE).sample' ++ @if [ ! -f '$(DESTDIR)$(ETCDIR)/$(PWDFILE)' ]; then \ ++ install -m 640 '$(DESTDIR)$(ETCDIR)/$(PWDFILE).sample' '$(DESTDIR)$(ETCDIR)/$(PWDFILE)'; \ + fi + @for i in $(TMPLFILES) ; do \ +- install -m 440 "etc/$$i" '$(ETCDIR)' ; \ ++ install -m 440 "etc/$$i" '$(DESTDIR)$(ETCDIR)' ; \ + done + @echo 'ok.' + + installlib: configure + @echo -n 'Installing library files into $(LIBDIR)... ' +- @install -d -m 755 '$(LIBDIR)' 2>/dev/null +- @install -m 440 'lib/$(RUNFILE).patched' '$(LIBDIR)/$(RUNFILE)' ++ @install -d -m 755 '$(DESTDIR)$(LIBDIR)' 2>/dev/null ++ @install -m 440 'lib/$(RUNFILE).patched' '$(DESTDIR)$(LIBDIR)/$(RUNFILE)' + @echo 'ok.' + + # Uninstall targets