debian/0000775000000000000000000000000012321066472007173 5ustar debian/389-ds-base-dev.install0000664000000000000000000000011012321061337013161 0ustar usr/include/dirsrv/* usr/lib/*/dirsrv/libslapd.so usr/lib/*/pkgconfig/* debian/389-ds-base.dirsrv.init0000664000000000000000000001052612321061337013226 0ustar #!/bin/sh ### BEGIN INIT INFO # Provides: dirsrv # Required-Start: $remote_fs # Required-Stop: $remote_fs # Should-Start: $network # Should-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start and stop 389 Directory Server # Description: dirsrv is the 389 LDAP Directory Server ### END INIT INFO PATH=/sbin:/bin:/usr/sbin:/usr/bin test -f /etc/default/dirsrv && . /etc/default/dirsrv . /lib/lsb/init-functions DISTRO=$(lsb_release -is 2>/dev/null || echo Debian) CONFDIR="/etc/dirsrv" BASEEXEC="ns-slapd" EXEC="/usr/sbin/$BASEEXEC" PROG="dirsrv" PIDDIR="/var/run/dirsrv" LOCKDIR="/var/lock/dirsrv" check_network() { if [ -z "$(/sbin/ifconfig)" ]; then log_action_msg "No networks configured." return 1 fi return 0 } fix_pid_dir_ownership() { if [ ! -d $PIDDIR ] ; then mkdir -p $PIDDIR owner=`grep \^nsslapd-localuser $1/dse.ldif | awk '{print $2}'` if [ -n "$owner" ] ; then chown $owner $PIDDIR 2>&1 > /dev/null chmod 700 $PIDDIR 2>&1 > /dev/null fi fi } fix_lock_dir_ownership() { if [ ! -d $LOCKDIR/slapd-$2 ] ; then mkdir -p $LOCKDIR/slapd-$2 owner=`grep \^nsslapd-localuser $1/dse.ldif | awk '{print $2}'` if [ -n "$owner" ] ; then chown -R $owner $LOCKDIR/slapd-$2 2>&1 > /dev/null chmod -R 700 $LOCKDIR/slapd-$2 2>&1 > /dev/null fi fi } INSTANCES="" # Ignore instances that have been removed for FILE in `/bin/ls -d $CONFDIR/slapd-* 2>/dev/null | sed -n '/\.removed$/!p'`; do if [ -d "$FILE" ] ; then inst=`echo "$FILE" | sed -e "s|$CONFDIR/slapd-||"` INSTANCES="$INSTANCES $inst" fi done if [ -z "$INSTANCES" ]; then log_action_msg "no $PROG instances configured so not starting 389 DS" exit 0 fi if [ -n "$2" ]; then for I in $INSTANCES; do if [ "$2" = "$I" ]; then INSTANCES="$2" fi done if [ "$2" != "$INSTANCES" ]; then echo -n "$2 is an invalid dirsrv instance" log_action_msg "$2 is an invalid dirsrv instance" log_end_msg 1 exit 1 fi fi if [ ! -x $EXEC ]; then log_action_msg "$EXEC binary missing - not doing anything" log_end_msg 1 exit 1 fi start() { for INSTANCE in $INSTANCES; do log_action_begin_msg "Starting 389 DS instance $INSTANCE: " PIDFILE=$PIDDIR/slapd-$INSTANCE.pid fix_pid_dir_ownership $CONFDIR/slapd-$INSTANCE fix_lock_dir_ownership $CONFDIR/slapd-$INSTANCE $INSTANCE # start the directory server in a subshell so that the instance specific # init config environment will not apply to any other instance ( [ -f /etc/default/dirsrv-$INSTANCE ] && . /etc/default/dirsrv-$INSTANCE start-stop-daemon -S --oknodo -x $EXEC -p $PIDFILE -b -- \ -D $CONFIG_DIR -i $PIDFILE ) log_end_msg $? done } stop() { for INSTANCE in $INSTANCES; do PIDFILE=$PIDDIR/slapd-$INSTANCE.pid if [ -f $PIDFILE ]; then log_action_begin_msg "Shutting down 389 DS instance $INSTANCE: " start-stop-daemon -K -p $PIDFILE -x $EXEC PID=`cat $PIDFILE` RETVAL=0 while [ $RETVAL -eq 0 ]; do sleep 0.5 kill -0 $PID > /dev/null 2>&1 RETVAL=$? done rm -f $PIDFILE log_end_msg $? fi done } restart() { stop start } status() { ret=0 for instance in $INSTANCES; do if [ -f $PIDDIR/slapd-$instance.pid ]; then pid=`cat $PIDDIR/slapd-$instance.pid` if kill -0 $pid > /dev/null 2>&1 ; then log_action_msg "$PROG $instance (pid $pid) is running..." else log_action_msg "$PROG $instance dead but pid file exists" ret=1 fi else log_action_msg "$PROG $instance is stopped" ret=0 fi done exit $ret } case "$1" in start|stop|restart|status) $1 ;; # FIXME: implement proper force-reload force-reload) if ! check_network; then exit 1 fi stop sleep 2 start ;; *) log_action_msg "Usage: /etc/init.d/dirsrv {start|stop|restart|force-reload} [instance-name]" exit 1 ;; esac exit 0 debian/patches/0000775000000000000000000000000012321066272010620 5ustar debian/patches/rename-online-scripts.diff0000664000000000000000000000433712321061337015674 0ustar diff --git a/ldap/admin/src/scripts/template-bak2db.pl.in b/ldap/admin/src/scripts/template-bak2db.pl.in index 4c7bab8..a972878 100644 --- a/ldap/admin/src/scripts/template-bak2db.pl.in +++ b/ldap/admin/src/scripts/template-bak2db.pl.in @@ -49,6 +49,6 @@ while ($i <= $#ARGV) { $i++; } -exec "{{SERVERBIN-DIR}}/bak2db.pl @wrapperArgs -Z {{SERV-ID}}"; +exec "{{SERVERBIN-DIR}}/bak2db-online @wrapperArgs -Z {{SERV-ID}}"; exit ($?); diff --git a/ldap/admin/src/scripts/template-db2bak.pl.in b/ldap/admin/src/scripts/template-db2bak.pl.in index 712f387..e5f44eb 100644 --- a/ldap/admin/src/scripts/template-db2bak.pl.in +++ b/ldap/admin/src/scripts/template-db2bak.pl.in @@ -49,7 +49,7 @@ while ($i <= $#ARGV) { $i++; } -exec "{{SERVERBIN-DIR}}/db2bak.pl @wrapperArgs -Z {{SERV-ID}}"; +exec "{{SERVERBIN-DIR}}/db2bak-online @wrapperArgs -Z {{SERV-ID}}"; exit ($?); diff --git a/ldap/admin/src/scripts/template-db2index.pl.in b/ldap/admin/src/scripts/template-db2index.pl.in index d2d6d87..7edb3c2 100644 --- a/ldap/admin/src/scripts/template-db2index.pl.in +++ b/ldap/admin/src/scripts/template-db2index.pl.in @@ -49,6 +49,6 @@ while ($i <= $#ARGV) { $i++; } -exec "{{SERVERBIN-DIR}}/db2index.pl @wrapperArgs -Z {{SERV-ID}}"; +exec "{{SERVERBIN-DIR}}/db2index-online @wrapperArgs -Z {{SERV-ID}}"; exit ($?); diff --git a/ldap/admin/src/scripts/template-db2ldif.pl.in b/ldap/admin/src/scripts/template-db2ldif.pl.in index feb8af9..10db293 100644 --- a/ldap/admin/src/scripts/template-db2ldif.pl.in +++ b/ldap/admin/src/scripts/template-db2ldif.pl.in @@ -53,6 +53,6 @@ while ($i <= $#ARGV) { $cwd = cwd(); -exec "{{SERVERBIN-DIR}}/db2ldif.pl -c $cwd @wrapperArgs -Z {{SERV-ID}}"; +exec "{{SERVERBIN-DIR}}/db2ldif-online -c $cwd @wrapperArgs -Z {{SERV-ID}}"; exit ($?); diff --git a/ldap/admin/src/scripts/template-ldif2db.pl.in b/ldap/admin/src/scripts/template-ldif2db.pl.in index 5211fd5..0bae57d 100644 --- a/ldap/admin/src/scripts/template-ldif2db.pl.in +++ b/ldap/admin/src/scripts/template-ldif2db.pl.in @@ -49,6 +49,6 @@ while ($i <= $#ARGV) { $i++; } -exec "{{SERVERBIN-DIR}}/ldif2db.pl @wrapperArgs -Z {{SERV-ID}}"; +exec "{{SERVERBIN-DIR}}/ldif2db-online @wrapperArgs -Z {{SERV-ID}}"; exit ($?); debian/patches/default_user0000664000000000000000000000064612321061337013230 0ustar Description: Run the daemon using "dirsrv" user and group Author: Michele Baldessari --- a/configure.ac +++ b/configure.ac @@ -306,8 +306,8 @@ configdir=/$PACKAGE_NAME/config schemadir=/$PACKAGE_NAME/schema # default user, group -defaultuser=nobody -defaultgroup=nobody +defaultuser=dirsrv +defaultgroup=dirsrv if test -z "$with_tmpfiles_d" ; then if test -d $sysconfdir/tmpfiles.d ; then debian/patches/series0000664000000000000000000000014412321066272012034 0ustar default_user fix-sasl-path.diff admin_scripts.diff rename-online-scripts.diff fix-version-typo.diff debian/patches/admin_scripts.diff0000664000000000000000000002070212321066272014312 0ustar --- a/ldap/admin/src/scripts/bak2db.in +++ b/ldap/admin/src/scripts/bak2db.in @@ -1,6 +1,6 @@ #!/bin/sh -source @datadir@/@package_name@/data/DSSharedLib +. @datadir@/@package_name@/data/DSSharedLib libpath_add "@libdir@/@package_name@/" libpath_add "@nss_libdir@" @@ -26,15 +26,18 @@ if [ $# -lt 1 ] || [ $# -gt 7 ] then usage exit 1 -elif [[ $1 == -* ]] -then - usage - exit 1 -else - archivedir=$1 - shift fi - +case $1 in + -*) + usage + exit 1 + ;; + *) + archivedir=$1 + shift + ;; +esac + while getopts "hn:Z:qd:vi:a:SD:" flag do case $flag in --- a/ldap/admin/src/scripts/db2bak.in +++ b/ldap/admin/src/scripts/db2bak.in @@ -1,6 +1,6 @@ #!/bin/sh -source @datadir@/@package_name@/data/DSSharedLib +. @datadir@/@package_name@/data/DSSharedLib libpath_add "@libdir@/@package_name@/" libpath_add "@nss_libdir@" @@ -21,20 +21,21 @@ usage() echo " -h - Display usage" } -if [ $# -gt 4 ] +if [ $# -lt 1 ] || [ $# -gt 4 ] then usage exit 1 fi - -if [ "$#" -gt 0 ] -then - if [[ $1 != -* ]] - then +case $1 in + -*) + usage + exit 1 + ;; + *) bak_dir=$1 shift - fi -fi + ;; +esac while getopts "hqd:Z:vi:a:SD" flag do --- a/ldap/admin/src/scripts/db2index.in +++ b/ldap/admin/src/scripts/db2index.in @@ -1,6 +1,6 @@ #!/bin/sh -source @datadir@/@package_name@/data/DSSharedLib +. @datadir@/@package_name@/data/DSSharedLib libpath_add "@libdir@/@package_name@/" libpath_add "@nss_libdir@" --- a/ldap/admin/src/scripts/db2ldif.in +++ b/ldap/admin/src/scripts/db2ldif.in @@ -1,6 +1,6 @@ #!/bin/sh -source @datadir@/@package_name@/data/DSSharedLib +. @datadir@/@package_name@/data/DSSharedLib libpath_add "@libdir@/@package_name@/" libpath_add "@nss_libdir@" --- a/ldap/admin/src/scripts/dbverify.in +++ b/ldap/admin/src/scripts/dbverify.in @@ -1,6 +1,6 @@ #!/bin/sh -source @datadir@/@package_name@/data/DSSharedLib +. @datadir@/@package_name@/data/DSSharedLib libpath_add "@libdir@/@package_name@/" libpath_add "@nss_libdir@" --- a/ldap/admin/src/scripts/dn2rdn.in +++ b/ldap/admin/src/scripts/dn2rdn.in @@ -1,6 +1,6 @@ #!/bin/sh -source @datadir@/@package_name@/data/DSSharedLib +. @datadir@/@package_name@/data/DSSharedLib libpath_add "@libdir@/@package_name@/" libpath_add "@nss_libdir@" --- a/ldap/admin/src/scripts/ldif2db.in +++ b/ldap/admin/src/scripts/ldif2db.in @@ -1,6 +1,6 @@ #!/bin/sh -source @datadir@/@package_name@/data/DSSharedLib +. @datadir@/@package_name@/data/DSSharedLib libpath_add "@libdir@/@package_name@/" libpath_add "@nss_libdir@" --- a/ldap/admin/src/scripts/ldif2ldap.in +++ b/ldap/admin/src/scripts/ldif2ldap.in @@ -1,6 +1,6 @@ #!/bin/sh -source @datadir@/@package_name@/data/DSSharedLib +. @datadir@/@package_name@/data/DSSharedLib libpath_add "@ldapsdk_libdir@" libpath_add "@libdir@" --- a/ldap/admin/src/scripts/monitor.in +++ b/ldap/admin/src/scripts/monitor.in @@ -1,6 +1,6 @@ #!/bin/sh -source @datadir@/@package_name@/data/DSSharedLib +. @datadir@/@package_name@/data/DSSharedLib libpath_add "@libdir@/@package_name@/" libpath_add "@ldapsdk_libdir@" --- a/ldap/admin/src/scripts/restart-dirsrv.in +++ b/ldap/admin/src/scripts/restart-dirsrv.in @@ -7,7 +7,7 @@ # 2: Server started successfully (was not running) # 3: Server could not be stopped -source @datadir@/@package_name@/data/DSSharedLib +. @datadir@/@package_name@/data/DSSharedLib restart_instance() { SERV_ID=$1 --- a/ldap/admin/src/scripts/restoreconfig.in +++ b/ldap/admin/src/scripts/restoreconfig.in @@ -1,6 +1,6 @@ #!/bin/sh -source @datadir@/@package_name@/data/DSSharedLib +. @datadir@/@package_name@/data/DSSharedLib libpath_add "@libdir@/@package_name@/" libpath_add "@nss_libdir@" --- a/ldap/admin/src/scripts/saveconfig.in +++ b/ldap/admin/src/scripts/saveconfig.in @@ -1,6 +1,6 @@ #!/bin/sh -source @datadir@/@package_name@/data/DSSharedLib +. @datadir@/@package_name@/data/DSSharedLib libpath_add "@libdir@/@package_name@/" libpath_add "@libdir@" --- a/ldap/admin/src/scripts/start-dirsrv.in +++ b/ldap/admin/src/scripts/start-dirsrv.in @@ -6,7 +6,7 @@ # 1: Server could not be started # 2: Server already running -source @datadir@/@package_name@/data/DSSharedLib +. @datadir@/@package_name@/data/DSSharedLib # Starts a single instance start_instance() { --- a/ldap/admin/src/scripts/stop-dirsrv.in +++ b/ldap/admin/src/scripts/stop-dirsrv.in @@ -6,7 +6,7 @@ # 1: Server could not be stopped # 2: Server was not running -source @datadir@/@package_name@/data/DSSharedLib +. @datadir@/@package_name@/data/DSSharedLib stop_instance() { SERV_ID=$1 --- a/ldap/admin/src/scripts/suffix2instance.in +++ b/ldap/admin/src/scripts/suffix2instance.in @@ -1,6 +1,6 @@ #!/bin/sh -source @datadir@/@package_name@/data/DSSharedLib +. @datadir@/@package_name@/data/DSSharedLib libpath_add "@libdir@/@package_name@/" libpath_add "@libdir@" --- a/ldap/admin/src/scripts/upgradedb.in +++ b/ldap/admin/src/scripts/upgradedb.in @@ -1,6 +1,6 @@ #!/bin/sh -source @datadir@/@package_name@/data/DSSharedLib +. @datadir@/@package_name@/data/DSSharedLib libpath_add "@libdir@/@package_name@/" libpath_add "@libdir@" --- a/ldap/admin/src/scripts/upgradednformat.in +++ b/ldap/admin/src/scripts/upgradednformat.in @@ -1,6 +1,6 @@ #!/bin/sh -source @datadir@/@package_name@/data/DSSharedLib +. @datadir@/@package_name@/data/DSSharedLib # upgradednformat -- upgrade DN format to the new style (RFC 4514) # Usgae: upgradednformat [-N] -n backend_instance -a db_instance_directory --- a/ldap/admin/src/scripts/vlvindex.in +++ b/ldap/admin/src/scripts/vlvindex.in @@ -1,6 +1,6 @@ #!/bin/sh -source @datadir@/@package_name@/data/DSSharedLib +. @datadir@/@package_name@/data/DSSharedLib libpath_add "@libdir@/@package_name@/" libpath_add "@libdir@" --- a/ldap/admin/src/scripts/DSSharedLib.in +++ b/ldap/admin/src/scripts/DSSharedLib.in @@ -135,48 +135,44 @@ process_dse () configdir=$1 pid=$2 file="$configdir/dse.ldif" - shopt -s nocasematch - OLD_IFC=$IFC + OLD_IFS=$IFS IFS="" while read -r LINE do - if [[ $LINE != \ * ]] && [ "$output" != "" ] - then - echo "$output" >> /tmp/DSSharedLib.$pid - output="" - fi - if [ "$output" != "" ] && [[ $LINE == \ * ]] - then - # continuation line, strip the space and append it - LINE=`echo "$LINE" | sed -e 's/^ //'` - output=$output$LINE - elif [[ $LINE == nsslapd-port* ]] - then - output=$LINE; - elif [[ $LINE == nsslapd-localhost* ]] - then - output=$LINE; - elif [[ $LINE == nsslapd-securePort* ]] - then - output=$LINE; - elif [[ $LINE == nsslapd-security* ]] - then - output=$LINE; - elif [[ $LINE == nsslapd-ldapilisten* ]] - then - output=$LINE; - elif [[ $LINE == nsslapd-ldapifilepath* ]] - then - output=$LINE; - elif [[ $LINE == nsslapd-rootdn* ]] - then - output=$LINE; - elif [[ $LINE == nsslapd-ldapiautobind* ]] - then - output=$LINE; - elif [[ $LINE == nsslapd-certdir* ]] - then - output=$LINE; + case $LINE in + ' '*) + ;; + *) + if [ "$output" != "" ] + then + echo "$output" >> /tmp/DSSharedLib.$pid + output="" + fi + ;; + esac + if [ "$output" != "" ] + then + case $LINE in + ' '*) + # continuation line, strip the space and append it + LINE=`echo "$LINE" | sed -e 's/^ //'` + output=$output$LINE + ;; + esac + else + case $LINE in + nsslapd-certdir*|\ + nsslapd-ldapiautobind*|\ + nsslapd-ldapilisten*|\ + nsslapd-ldapifilepath*|\ + nsslapd-localhost*|\ + nsslapd-port*|\ + nsslapd-rootdn*|\ + nsslapd-securePort*|\ + nsslapd-security*) + output=$LINE + ;; + esac fi done < $file @@ -224,4 +220,4 @@ check_protocol () fi echo "$protocol" -} \ No newline at end of file +} debian/patches/fix-version-typo.diff0000664000000000000000000000063512321066272014720 0ustar Description: Tarball didn't get the version right --- 389-ds-base-1.3.2.16.orig/VERSION.sh +++ 389-ds-base-1.3.2.16/VERSION.sh @@ -10,7 +10,7 @@ vendor="389 Project" # PACKAGE_VERSION is constructed from these VERSION_MAJOR=1 VERSION_MINOR=3 -VERSION_MAINT=2.13 +VERSION_MAINT=2.16 # if this is a PRERELEASE, set VERSION_PREREL # otherwise, comment it out # be sure to include the dot prefix in the prerel debian/patches/fix-sasl-path.diff0000664000000000000000000000305012321061337014125 0ustar --- a/ldap/servers/slapd/ldaputil.c +++ b/ldap/servers/slapd/ldaputil.c @@ -689,8 +689,16 @@ slapi_ldap_init_ext( if (!(pluginpath = getenv("SASL_PATH"))) { #if defined(LINUX) && defined(__LP64__) pluginpath = "/usr/lib64/sasl2"; + if (PR_SUCCESS != PR_Access(pluginpath, PR_ACCESS_EXISTS)) { + /* Since the path does not exist, try gnu triplet. */ + pluginpath = "/usr/lib/x86_64-linux-gnu/sasl2"; + } #else pluginpath = "/usr/lib/sasl2"; + if (PR_SUCCESS != PR_Access(pluginpath, PR_ACCESS_EXISTS)) { + /* Since the path does not exist, try gnu triplet. */ + pluginpath = "/usr/lib/i386-linux-gnu/sasl2"; + } #endif } } --- a/ldap/servers/slapd/saslbind.c +++ b/ldap/servers/slapd/saslbind.c @@ -553,8 +553,16 @@ static int ids_sasl_getpluginpath(sasl_c if (!(pluginpath = getenv("SASL_PATH"))) { #if defined(LINUX) && defined(__LP64__) pluginpath = "/usr/lib64/sasl2"; + if (PR_SUCCESS != PR_Access(pluginpath, PR_ACCESS_EXISTS)) { + /* Since the path does not exist, try gnu triplet. */ + pluginpath = "/usr/lib/x86_64-linux-gnu/sasl2"; + } #else pluginpath = "/usr/lib/sasl2"; + if (PR_SUCCESS != PR_Access(pluginpath, PR_ACCESS_EXISTS)) { + /* Since the path does not exist, try gnu triplet. */ + pluginpath = "/usr/lib/i386-linux-gnu/sasl2"; + } #endif } } debian/389-ds-base.postrm0000664000000000000000000000036712321061337012301 0ustar #!/bin/sh set -e . /usr/share/debconf/confmodule if [ "$1" = "purge" ]; then rmdir --ignore-fail-on-non-empty /etc/dirsrv >/dev/null if getent group dirsrv > /dev/null; then deluser --system dirsrv || true fi fi #DEBHELPER# debian/source/0000775000000000000000000000000012321061337010466 5ustar debian/source/format0000664000000000000000000000001412321061337011674 0ustar 3.0 (quilt) debian/389-ds-base.install0000664000000000000000000000036012321066272012417 0ustar etc/dirsrv/schema/*.ldif etc/dirsrv/config/ usr/share/dirsrv/ usr/bin/ usr/sbin/ usr/lib/*/dirsrv/libns-dshttpd.so* usr/lib/*/dirsrv/perl/ usr/lib/*/dirsrv/python/ usr/lib/*/dirsrv/plugins/*.so usr/share/man/man1/*.1 usr/share/man/man8/*.8 debian/389-ds-base.dirs0000664000000000000000000000003612321061337011707 0ustar var/log/dirsrv var/lib/dirsrv debian/control0000664000000000000000000001144212321066272010576 0ustar Source: 389-ds-base Section: net Priority: optional Maintainer: Ubuntu 389ds XSBC-Original-Maintainer: Debian 389ds Team Uploaders: Timo Aaltonen , Krzysztof Klimonda Build-Depends: debhelper (>= 9), dh-autoreconf, libnspr4-dev, libnss3-dev, libsasl2-dev, libsvrcore-dev, libldap2-dev (>= 2.4.28), libicu-dev, libsnmp-dev, libdb-dev, zlib1g-dev, libbz2-dev, libssl-dev, libpam0g-dev, pkg-config, libperl-dev, libkrb5-dev, libpcre3-dev, Standards-Version: 3.9.5 Vcs-Git: git://git.debian.org/git/pkg-fedora-ds/389-ds-base.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-fedora-ds/389-ds-base.git Homepage: http://directory.fedoraproject.org Package: 389-ds Architecture: all Depends: ${misc:Depends}, 389-ds-base, 389-admin, 389-admin-console, 389-console, 389-ds-console, 389-dsgw, Description: 389 Directory Server suite - metapackage Based on the Lightweight Directory Access Protocol (LDAP), the 389 Directory Server is designed to manage large directories of users and resources robustly and scalably. . This is a metapackage depending on the LDAPv3 server, the HTTP daemon used for server administration, and the graphical console used for server and user/group administration. Package: 389-ds-base-libs Section: libs Architecture: linux-any Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, Breaks: libdirsrv0 Replaces: libdirsrv0 Description: 389 Directory Server suite - libraries Based on the Lightweight Directory Access Protocol (LDAP), the 389 Directory Server is designed to manage large directories of users and resources robustly and scalably. . This package contains core libraries for the 389 Directory Server. Package: 389-ds-base-libs-dbg Section: debug Priority: extra Architecture: linux-any Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, 389-ds-base-libs (= ${binary:Version}), Description: 389 Directory Server suite - library debugging symbols Based on the Lightweight Directory Access Protocol (LDAP), the 389 Directory Server is designed to manage large directories of users and resources robustly and scalably. . This package provides detached debugging information for the 389 Directory Server libraries. It is useful primarily to permit better backtraces and crash dump analysis after problems with the libraries. GDB will find this debug information automatically. Package: 389-ds-base-dev Section: libdevel Architecture: linux-any Depends: ${misc:Depends}, ${shlibs:Depends}, 389-ds-base-libs (= ${binary:Version}), libldap2-dev, libnspr4-dev, Breaks: libdirsrv-dev Replaces: libdirsrv-dev Description: 389 Directory Server suite - development files Based on the Lightweight Directory Access Protocol (LDAP), the 389 Directory Server is designed to manage large directories of users and resources robustly and scalably. . This package contains development headers for the core libraries of the 389 Directory Server, useful for developing plugins without having to install the server itself. Package: 389-ds-base Architecture: linux-any Pre-Depends: debconf (>= 0.5) | debconf-2.0 Depends: ${misc:Depends}, ${shlibs:Depends}, 389-ds-base-libs (= ${binary:Version}), adduser, ldap-utils, libmozilla-ldap-perl, libnetaddr-ip-perl, libsasl2-modules-gssapi-mit, libperl4-corelibs-perl | perl (<< 5.12.3-7), libsocket-getaddrinfo-perl, python, Conflicts: slapd, Breaks: dirsrv, libdirsrv0, libdirsrv-dev, Replaces: dirsrv, libdirsrv0, libdirsrv-dev, Description: 389 Directory Server suite - server Based on the Lightweight Directory Access Protocol (LDAP), the 389 Directory Server is designed to manage large directories of users and resources robustly and scalably. . Its key features include: * four-way multi-master replication; * great scalability; * extensive documentation; * Active Directory user and group synchronization; * secure authentication and transport; * support for LDAPv3; * graphical management console; * on-line, zero downtime update of schema, configuration, and in-tree Access Control Information. Package: 389-ds-base-dbg Section: debug Priority: extra Architecture: linux-any Depends: ${misc:Depends}, 389-ds-base (= ${binary:Version}), Description: 389 Directory Server suite - server debugging symbols Based on the Lightweight Directory Access Protocol (LDAP), the 389 Directory Server is designed to manage large directories of users and resources robustly and scalably. . This package provides detached debugging information for the 389 Directory Server. It is useful primarily to permit better backtraces and crash dump analysis after problems with the libraries. GDB will find this debug information automatically. debian/changelog0000664000000000000000000003214212321066400011036 0ustar 389-ds-base (1.3.2.16-0ubuntu1) trusty; urgency=medium * Sync with unreleased debian git. -- Timo Aaltonen Wed, 09 Apr 2014 00:40:55 +0300 389-ds-base (1.3.2.16-1) UNRELEASED; urgency=medium * New upstream release. - CVE-2014-0132 (Closes: #741600) * admin_scripts.diff: Updated to fix more bashisms. * control: Build only on linux. * watch: Update the url. * Install failedbinds.py and logregex.py scripts. * fix-version-typo.diff: Tarball didn't get the version right. -- Timo Aaltonen Wed, 12 Feb 2014 09:47:35 +0200 389-ds-base (1.3.2.11-0ubuntu1) trusty; urgency=medium * Merge from unreleased debian git. - CVE fixes -- Timo Aaltonen Wed, 19 Feb 2014 01:43:25 +0200 389-ds-base (1.3.2.9-1) unstable; urgency=low * New upstream release. - fixes CVE-2013-0336 (Closes: #704077) - fixes CVE-2013-1897 (Closes: #704421) - fixes CVE-2013-2219 (Closes: #718325) - fixes CVE-2013-4283 (Closes: #721222) - fixes CVE-2013-4485 (Closes: #730115) * Drop fix-CVE-2013-0312.diff, upstream. * rules: Add new scripts to rename. * fix-sasl-path.diff: Use a triplet path to find libsasl2. (LP: #1088822) * admin_scripts.diff: Add patch from upstream #47511 to fix bashisms. * control: Add ldap-utils to -base depends. * rules, rename-online-scripts.diff: Some scripts with .pl suffix are meant for an online server, so instead of overwriting the offline scripts use -online suffix. * rules: Enable parallel build, but limit the jobs to 1 for dh_auto_install. * control: Bump policy to 3.9.5, no changes. * rules: Add get-orig-source target. * lintian-overrides: Drop obsolete entries, add comments for the rest. -- Timo Aaltonen Mon, 03 Feb 2014 11:08:50 +0200 389-ds-base (1.3.0.3-1) unstable; urgency=low * New upstream release. * control: Bump the policy to 3.9.4, no changes. * fix-CVE-2013-0312.diff: Patch to fix handling LDAPv3 control data. -- Timo Aaltonen Mon, 11 Mar 2013 14:23:20 +0200 389-ds-base (1.2.11.17-1) UNRELEASED; urgency=low * New upstream release. * watch: Add a comment about the upstream git tree. * fix-cve-2012-4450.diff: Remove, upstream. -- Timo Aaltonen Sat, 01 Dec 2012 14:22:13 +0200 389-ds-base (1.2.11.15-1) unstable; urgency=low * New upstream release. * Add fix-cve-2012-4450.diff. (Closes: #688942) * dirsrv.init: Fix stop() to remove the pidfile only when the process is finished. (Closes: #689389) * copyright: Update the source url. * control: Drop quilt from build-depends, since using 3.0 (quilt) * lintian-overrides: Add an override for hardening-no-fortify- functions, since it's a false positive in this case. * control: Drop dpkg-dev from build-depends, no need to specify it directly. * copyright: Add myself as a copyright holder for debian/*. * 389-ds-base.prerm: Add 'set -e'. * rules: drop DEB_HOST_MULTIARCH, dh9 handles it. -- Timo Aaltonen Wed, 03 Oct 2012 19:33:52 +0300 389-ds-base (1.2.11.7-5) unstable; urgency=low * control: Drop debconf-utils and po-debconf from build-depends. * control: Add libnetaddr-ip-perl and libsocket-getaddrinfo-perl to 389-ds-base Depends for ipv6 support. (Closes: #682847) -- Timo Aaltonen Mon, 30 Jul 2012 13:12:23 +0200 389-ds-base (1.2.11.7-4) unstable; urgency=low * debian/po: Remove, leftover from the template purge. (Closes: #681543) -- Timo Aaltonen Thu, 19 Jul 2012 23:12:01 +0300 389-ds-base (1.2.11.7-3) unstable; urgency=low * 389-ds-base.config: Removed, the debconf template is no more. (Closes: #680351) * control: Remove duplicate 'the' from the 389-ds description. -- Timo Aaltonen Wed, 11 Jul 2012 11:59:36 +0300 389-ds-base (1.2.11.7-2) unstable; urgency=low * control: Stop hardcoding libs to binary depends. (Closes: #679790) * control: Add libnspr4-dev and libldap2-dev to 389-ds-base-dev Depends. (Closes: #679742) * l10n review (Closes: #679870) : - Drop the debconf template, and rewrap README.Debian. - control: Update the descriptions -- Timo Aaltonen Tue, 03 Jul 2012 17:58:20 +0300 389-ds-base (1.2.11.7-1) unstable; urgency=low [ Timo Aaltonen ] * New upstream release. * watch: Fix the url. * patches/remove_license_prompt: Dropped, included upstream. * patches/default_user: Refreshed. * control: Change the VCS header to point to the git repository. * control: Rename last remnants of Fedora to 389. * changelog, control: Be consistent with the naming; renamed the source to just '389-ds-base', which matches upstream tarball naming. * control: Wrap Depends. * compat, control: Bump compat to 9, and debhelper build-dep to (>= 9). * rules: Switch to dh. * Move dirsrv.lintian to dirsrv.lintian-overrides, adjust dirsrv.install. * *.dirs: Clean up. * control: Build-depend on dh-autoreconf, drop duplicate bdeps. * Fold dirsrv-tools into the main package. * Build against libldap2-dev (>= 2.4.28). * Rename binary package to 389-ds-base. * -dev.install: Install the pkgconfig file. * rules: Enable PIE hardening. * Add a default file, currently sets LD_BIND_NOW=1. * control: 'dbgen' uses old perl libs, add libperl4-corelibs-perl dependency to 389-ds-base. * rules: Add --fail-missing for dh_install, remove files not needed and make sure to install the rest. * rules, control: Fix the installation name of ds-logpipe.py, add python dependency to 389-ds-base.. * libns-dshttpd is internal to the server, ship it in 389-ds-base. * Rename libdirsrv{-dev,0} -> 389-ds-base-{dev,libs}, includes only libslapd and headers for external plugin development. * control: Breaks/Replaces old libdirsrv-dev/libdirsrv0/dirsrv. * Drop hyphen_used_as_minus, applied upstream. * copyright: Use DEP5 format. * Cherry-pick upstream commit ee320163c6 to get rid of unnecessary and non-free MIB's from the tree, and build a dfsg compliant tarball. * lintian-overrides: Update, create one for -libs. * Fix the initscript to create the lockdir, and refactor code into separate functions. * Drop obsolete entries from copyright, and make it lintian clean. * debian/po: Refer to the correct file after rename. * control: Bump Standards-Version to 3.9.3, no changes. * postinst: Drop unused 'lastversion'. * patches: Add DEP3 compliant headers. * rules, postinst: Add an error handler function for dh_installinit, so that clean installs don't fail due to missing configuration. * postinst: Run the update tool. * dirsrv.init: - Make the start and stop functions much simpler and LSB compliant - Fix starting multiple instances - Use '-b' for start-stop-daemon, since ns-slapd doesn't detach properly * control: Add 389-ds metapackage. * control: Change libdb4.8-dev build-depends to libdb-dev, since this version supports db5.x. * 389-ds-base.prerm: Add prerm script for removing installed instances on purge. [ Krzysztof Klimonda ] * dirsrv.init: - return 0 code if there are no instances configured and tweak message so it doesn't indicate a failure. -- Krzysztof Klimonda Tue, 27 Mar 2012 14:26:16 +0200 389-directory-server (1.2.6.1-5) unstable; urgency=low * Removed db_stop from dirsrv.postinst * Fix short description in libdirsrv0-dbg -- Michele Baldessari Wed, 20 Oct 2010 20:24:20 +0200 389-directory-server (1.2.6.1-4) unstable; urgency=low * Make libicu dep dependent on dpkg-vendor -- Michele Baldessari Mon, 18 Oct 2010 21:21:52 +0200 389-directory-server (1.2.6.1-3) unstable; urgency=low * Remove dirsrv user and group in postrm * Clean up postrm and postinst -- Michele Baldessari Sun, 17 Oct 2010 21:54:08 +0200 389-directory-server (1.2.6.1-2) unstable; urgency=low * Fix QUILT_STAMPFN -- Michele Baldessari Sun, 17 Oct 2010 15:03:34 +0200 389-directory-server (1.2.6.1-1) unstable; urgency=low * New upstream -- Michele Baldessari Sat, 16 Oct 2010 23:08:09 +0200 389-directory-server (1.2.6-2) unstable; urgency=low * Update my email address -- Michele Baldessari Sat, 16 Oct 2010 22:34:19 +0200 389-directory-server (1.2.6-1) unstable; urgency=low * New upstream * s/Fedora/389/g to clean up the branding * Remove automatic configuration (breaks too often with every update) * Remove dirsrv.config translation, no questions are asked anymore * Fix old changelog versions with proper ~ on rc versions * Update policy to 3.9.1 * Improve README.Debian * Depend on libicu44 * Remove /var/run/dirsrv from the postinst scripts (managed by init script) -- Michele Baldessari Sat, 04 Sep 2010 11:58:21 +0200 389-directory-server (1.2.6~rc7-1) unstable; urgency=low * New upstream -- Michele Baldessari Fri, 03 Sep 2010 20:06:08 +0200 389-directory-server (1.2.6~a3-1) unstable; urgency=low * New upstream * Rename man page remove-ds.pl in remove-ds * Removed Debian.source -- Michele Baldessari Sun, 23 May 2010 22:12:13 +0200 389-directory-server (1.2.6~a2-1) unstable; urgency=low * New upstream * Removed speling_fixes patch, applied upstream -- Michele Baldessari Sun, 23 May 2010 13:36:25 +0200 389-directory-server (1.2.5-1) unstable; urgency=low * New upstream * Add libpcre3-dev Build-dep * ldap-agent moved ti /usr/sbin * Fix spelling errors in code and manpages * Fix some lintian warnings * Bump policy to 3.8.3 * Ignore lintian warning pkg-has-shlibs-control-file-but-no-actual-shared-libs as the shlibs file is for dirsrv plugins * Upgraded deps to libicu42 and libdb4.8 * Do create /var/lib/dirsrv as dirsrv user's home * Added libsasl2-modules-gssapi-mit as a dependency for dirsrv (needed by mandatory LDAP SASL mechs) * Install all files of etc/dirsrv/config * Add some missing start scripts in usr/sbin * Fixed a bug in the dirsrv.init script * Switch to dpkg-source 3.0 (quilt) format * Bump policy to 3.8.4 -- Michele Baldessari Sun, 23 May 2010 12:31:24 +0200 389-directory-server (1.2.1-0) unstable; urgency=low * Rename of source package (note, since this is still staging work no replace or upgrade is in place) * Update watch file * New Upstream -- Michele Baldessari Fri, 12 Jun 2009 22:08:42 +0200 fedora-directory-server (1.2.0-1) unstable; urgency=low * New upstream release * Add missing libkrb5-dev dependency * Fix section of -dbg packages * Fix all "dpatch-missing-description" lintian warnings -- Michele Baldessari Wed, 22 Apr 2009 23:36:22 +0200 fedora-directory-server (1.1.3-1) unstable; urgency=low * New upstream * Added watch file * Make setup-ds use dirsrv:dirsrv user/group as defaults * Added VCS-* fields * --enable-autobind * Add ldap/servers/plugins/replication/winsync-plugin.h to libdirsrv-dev -- Michele Baldessari Mon, 24 Nov 2008 22:42:26 +0100 fedora-directory-server (1.1.2-2) unstable; urgency=low * Fixed build+configure twice issue * Added Conflicts: slapd (thanks Alessandro) -- Michele Baldessari Tue, 23 Sep 2008 21:12:44 +0200 fedora-directory-server (1.1.2-1) unstable; urgency=low * New upstream * Removed /usr/sbin PATH from postinst script -- Michele Baldessari Sat, 20 Sep 2008 20:10:52 +0000 fedora-directory-server (1.1.1-0) unstable; urgency=low * New upstream * Don't apply patch for 439829, fixed upstream * Bump to policy 3.8.0 * Added README.source -- Michele Baldessari Fri, 22 Aug 2008 00:09:40 +0200 fedora-directory-server (1.1.0-4) unstable; urgency=low * dirsrv should depend on libmozilla-ldap-perl (thanks Mathias Kaufmann ) -- Michele Baldessari Sun, 20 Jul 2008 18:41:58 +0200 fedora-directory-server (1.1.0-3) unstable; urgency=low * Fix up some descriptions -- Michele Baldessari Sun, 25 May 2008 21:36:32 +0200 fedora-directory-server (1.1.0-2) unstable; urgency=low * Silenced init warning messages when chowning pid directory -- Michele Baldessari Wed, 21 May 2008 23:08:32 +0200 fedora-directory-server (1.1.0-1) unstable; urgency=low * Removed template lintian warning * Cleaned up manpages -- Michele Baldessari Sun, 18 May 2008 13:39:58 +0200 fedora-directory-server (1.1.0-0) unstable; urgency=low * Initial release (Closes: #497098). * Fixed postinst after renaming setup-ds.pl to setup-ds * Applied patch from https://bugzilla.redhat.com/show_bug.cgi?id=439829 to fix segfault against late NSS versions * Switched to parseable copyright format * Source package is lintian clean now * Added initial manpage patch * Switched to dh_install -- Michele Baldessari Thu, 27 Mar 2008 23:56:17 +0200 debian/rules0000775000000000000000000000572412321061337010256 0ustar #!/usr/bin/make -f # -*- makefile -*- export DEB_BUILD_MAINT_OPTIONS = hardening=+pie DEB_UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([^+]+)-.*/\1/p') # Keep track of files we don't install NOT_INSTALLED := \ etc/rc.d/init.d/dirsrv-snmp \ etc/rc.d/init.d/dirsrv \ etc/default/dirsrv REALFILE = \ bin/cl-dump.pl \ bin/dbgen.pl \ bin/ds-logpipe.py \ bin/logconv.pl \ bin/repl-monitor.pl \ sbin/migrate-ds.pl \ sbin/remove-ds.pl \ sbin/setup-ds.pl \ sbin/cleanallruv.pl \ sbin/fixup-linkedattrs.pl \ sbin/fixup-memberof.pl \ sbin/ns-accountstatus.pl \ sbin/ns-activate.pl \ sbin/ns-inactivate.pl \ sbin/ns-newpwpolicy.pl \ sbin/schema-reload.pl \ sbin/syntax-validate.pl \ sbin/usn-tombstone-cleanup.pl \ sbin/verify-db.pl \ share/man/man1/dbgen.pl.1 \ share/man/man1/ds-logpipe.py.1 \ share/man/man1/logconv.pl.1 \ share/man/man8/migrate-ds.pl.8 \ share/man/man8/setup-ds.pl.8 \ share/man/man8/remove-ds.pl.8 # scripts for handling online servers REALFILE_ONLINE = \ sbin/bak2db.pl \ sbin/db2bak.pl \ sbin/db2index.pl \ sbin/db2ldif.pl \ sbin/ldif2db.pl \ share/man/man8/bak2db.pl.8 \ share/man/man8/db2bak.pl.8 \ share/man/man8/db2index.pl.8 \ share/man/man8/db2ldif.pl.8 \ share/man/man8/ldif2db.pl.8 override_dh_auto_configure: dh_auto_configure -- \ --with-openldap \ --enable-autobind override_dh_auto_install: dh_auto_install --max-parallel=1 override_dh_install: # lets do the renaming here afterall, instead of in 389-ds-base.install for file in $(REALFILE); do mv -f $(CURDIR)/debian/tmp/usr/$$file \ $(CURDIR)/debian/tmp/usr/`echo $$file | \ sed -s 's/\.pl//;s/\.py//'`; \ done # use -online suffix so that they won't overwrite the offline scripts for file in $(REALFILE_ONLINE); do mv -f $(CURDIR)/debian/tmp/usr/$$file \ $(CURDIR)/debian/tmp/usr/`echo $$file | \ sed -s 's/\.pl/-online/'`; \ done # purge .la files find $(CURDIR)/debian/tmp -name "*.la" -type f -exec rm -f "{}" \; # fix template script headers find $(CURDIR)/debian/tmp/usr/share/dirsrv/script-templates/ -type f -exec perl -pi -e 's,#\{\{PERL-EXEC\}\},#!/usr/bin/perl,' "{}" \; # Also get rid of other files which aren't installed. Do not # use -f to ensure we notice disappearing files: set -e; for file in $(NOT_INSTALLED); do rm debian/tmp/$$file; done dh_install --fail-missing override_dh_installinit: dh_installinit --name dirsrv --error-handler=invoke_failure -- defaults 15 85 override_dh_strip: dh_strip -p389-ds-base-libs --dbg-package=389-ds-base-libs-dbg dh_strip -p389-ds-base --dbg-package=389-ds-base-dbg override_dh_shlibdeps: dh_shlibdeps -l"debian/389-ds-base/usr/lib/$(DEB_HOST_MULTIARCH)/dirsrv" -a get-orig-source: # upstream wikipage is rarely updated, so uscan doesn't work wget http://port389.org/sources/389-ds-base-$(DEB_UPSTREAM_VERSION).tar.bz2 mv 389-ds-base-$(DEB_UPSTREAM_VERSION).tar.bz2 ../389-ds-base_$(DEB_UPSTREAM_VERSION).orig.tar.bz2 %: dh $@ --parallel --with autoreconf --builddir build/ debian/README.Debian0000664000000000000000000000066012321061337011231 0ustar To complete the 389 Directory Server installation just run /usr/sbin/setup-ds. If you experience problems accessing the Directory Server, check with "netstat -tapen |grep 389" and verify that the server is not listening only to ipv6 (check for ^tcp6). In such case you will need to tweak the cn=config DIT with something like the following: dn: cn=config changetype: modify add: nsslapd-listenhost nsslapd-listenhost: debian/389-ds-base.default0000664000000000000000000000014312321061337012371 0ustar # Defaults for dirsrv # # This is a POSIX shell fragment # Enable bindnow hardening LD_BIND_NOW=1 debian/389-ds-base.lintian-overrides0000664000000000000000000000025412321061337014406 0ustar # these are bogus warnings, no libs shipped in a public libdir unused-shlib-entry-in-control-file postinst-has-useless-call-to-ldconfig postrm-has-useless-call-to-ldconfig debian/389-ds-base.prerm0000664000000000000000000000042312321061337012073 0ustar #!/bin/sh -e set -e #DEBHELPER# if [ "$1" = "purge" ]; then # remove all installed instances for FILE in `ls -d $CONFDIR/slapd-* 2>/dev/null | sed -n '/\.removed$/!$'` do if [ -d "$FILE" ] ; then remove-ds -f -i $FILE fi done fi debian/compat0000664000000000000000000000000212321061337010364 0ustar 9 debian/watch0000664000000000000000000000015112321066272010217 0ustar #git=git://git.fedorahosted.org/389/ds.git version=3 http://port389.org/sources/389-ds-base-(.*).tar.bz2 debian/389-ds-base.postinst0000664000000000000000000000207712321061337012640 0ustar #!/bin/sh set -e . /usr/share/debconf/confmodule CONFIG_DIR=/etc/dirsrv OUT=/dev/null if [ "$1" = configure ]; then # lets give them a user/group in all cases. if ! getent passwd dirsrv > $OUT; then adduser --quiet --system --home /var/lib/dirsrv \ --disabled-password --group \ --gecos "389 Directory Server user" \ dirsrv > $OUT fi chown -R dirsrv:dirsrv /etc/dirsrv/ /var/log/dirsrv/ /var/lib/dirsrv/ > $OUT || true chmod 750 /etc/dirsrv/ /var/log/dirsrv/ /var/lib/dirsrv/ > $OUT || true if [ -n "$2" ]; then service dirsrv stop > $OUT 2>&1 setup-ds -l $OUT -u -s General.UpdateMode=offline > $OUT 2>&1 # instances are started below fi fi invoke_failure() { # invoke-rc.d failed, likely because no instance has been configured yet # but exit with an error if an instance is configured and the invoke failed INSTANCES=`ls -d /etc/dirsrv/slapd-* | grep -v removed` if [ -z $INSTANCES ]; then echo "... because no instance has been configured yet." else exit 1 fi } #DEBHELPER# debian/copyright0000664000000000000000000007044012321061337011126 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-name: 389-ds-base Source: http://directory.fedoraproject.org/wiki/Source Files: * Copyright: 2001 Sun Microsystems, Inc. 2005 Red Hat, Inc. License: GPL-2 and Other Files: ldap/libraries/libavl/*.[ch] ldap/servers/slapd/abandon.c ldap/servers/slapd/add.c ldap/servers/slapd/abandon.c ldap/servers/slapd/add.c ldap/servers/slapd/bind.c ldap/servers/slapd/bulk_import.c ldap/servers/slapd/compare.c ldap/servers/slapd/delete.c ldap/servers/slapd/detach.c ldap/servers/slapd/globals.c ldap/servers/slapd/modify.c ldap/servers/slapd/modrdn.c ldap/servers/slapd/monitor.c ldap/servers/slapd/search.c ldap/servers/slapd/unbind.c Copyright: 1993 Regents of the University of Michigan 2001 Sun Microsystems, Inc. 2005 Red Hat, Inc. License: GPL-2 and Other Files: ldap/servers/slapd/tools/ldaptool.h Copyright: 1998 Netscape Communication Corporation License: GPL-2+ or LGPL-2.1 or MPL-1.1 Files: ldap/servers/slapd/tools/ldaptool-sasl.c ldap/servers/slapd/tools/ldaptool-sasl.h Copyright: 2005 Sun Microsystems, Inc. License: GPL-2+ or LGPL-2.1 or MPL-1.1 Files: m4/* Copyright: 2006, 2007 Red Hat, Inc. License: GPL-2+ Files: debian/* Copyright: 2008 Michele Baldessari 2012 Timo Aaltonen License: GPL-2+ or LGPL-2.1 or MPL-1.1 License: Other In addition, as a special exception, Red Hat, Inc. gives You the additional right to link the code of this Program with code not covered under the GNU General Public License ("Non-GPL Code") and to distribute linked combinations including the two, subject to the limitations in this paragraph. Non-GPL Code permitted under this exception must only link to the code of this Program through those well defined interfaces identified in the file named EXCEPTION found in the source code files (the "Approved Interfaces"). The files of Non-GPL Code may instantiate templates or use macros or inline functions from the Approved Interfaces without causing the resulting work to be covered by the GNU General Public License. Only Red Hat, Inc. may make changes or additions to the list of Approved Interfaces. You must obey the GNU General Public License in all respects for all of the Program code and other code used in conjunction with the Program except the Non-GPL Code covered by this exception. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to provide this exception without modification, you must delete this exception statement from your version and license this file solely under the GPL without exception. License: GPL-2 or GPL-2+ On Debian machines the full text of the GNU General Public License can be found in the file /usr/share/common-licenses/GPL-2. License: LGPL-2.1 On Debian machines the full text of the GNU General Public License can be found in the file /usr/share/common-licenses/LGPL-2.1. License: MPL-1.1 MOZILLA PUBLIC LICENSE Version 1.1 . --------------- . 1. Definitions. . 1.0.1. "Commercial Use" means distribution or otherwise making the Covered Code available to a third party. . 1.1. "Contributor" means each entity that creates or contributes to the creation of Modifications. . 1.2. "Contributor Version" means the combination of the Original Code, prior Modifications used by a Contributor, and the Modifications made by that particular Contributor. . 1.3. "Covered Code" means the Original Code or Modifications or the combination of the Original Code and Modifications, in each case including portions thereof. . 1.4. "Electronic Distribution Mechanism" means a mechanism generally accepted in the software development community for the electronic transfer of data. . 1.5. "Executable" means Covered Code in any form other than Source Code. . 1.6. "Initial Developer" means the individual or entity identified as the Initial Developer in the Source Code notice required by Exhibit A. . 1.7. "Larger Work" means a work which combines Covered Code or portions thereof with code not governed by the terms of this License. . 1.8. "License" means this document. . 1.8.1. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently acquired, any and all of the rights conveyed herein. . 1.9. "Modifications" means any addition to or deletion from the substance or structure of either the Original Code or any previous Modifications. When Covered Code is released as a series of files, a Modification is: A. Any addition to or deletion from the contents of a file containing Original Code or previous Modifications. . B. Any new file that contains any part of the Original Code or previous Modifications. . 1.10. "Original Code" means Source Code of computer software code which is described in the Source Code notice required by Exhibit A as Original Code, and which, at the time of its release under this License is not already Covered Code governed by this License. . 1.10.1. "Patent Claims" means any patent claim(s), now owned or hereafter acquired, including without limitation, method, process, and apparatus claims, in any patent Licensable by grantor. . 1.11. "Source Code" means the preferred form of the Covered Code for making modifications to it, including all modules it contains, plus any associated interface definition files, scripts used to control compilation and installation of an Executable, or source code differential comparisons against either the Original Code or another well known, available Covered Code of the Contributor's choice. The Source Code can be in a compressed or archival form, provided the appropriate decompression or de-archiving software is widely available for no charge. . 1.12. "You" (or "Your") means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License or a future version of this License issued under Section 6.1. For legal entities, "You" includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. . 2. Source Code License. . 2.1. The Initial Developer Grant. The Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license, subject to third party intellectual property claims: (a) under intellectual property rights (other than patent or trademark) Licensable by Initial Developer to use, reproduce, modify, display, perform, sublicense and distribute the Original Code (or portions thereof) with or without Modifications, and/or as part of a Larger Work; and . (b) under Patents Claims infringed by the making, using or selling of Original Code, to make, have made, use, practice, sell, and offer for sale, and/or otherwise dispose of the Original Code (or portions thereof). . (c) the licenses granted in this Section 2.1(a) and (b) are effective on the date Initial Developer first distributes Original Code under the terms of this License. . (d) Notwithstanding Section 2.1(b) above, no patent license is granted: 1) for code that You delete from the Original Code; 2) separate from the Original Code; or 3) for infringements caused by: i) the modification of the Original Code or ii) the combination of the Original Code with other software or devices. . 2.2. Contributor Grant. Subject to third party intellectual property claims, each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license . (a) under intellectual property rights (other than patent or trademark) Licensable by Contributor, to use, reproduce, modify, display, perform, sublicense and distribute the Modifications created by such Contributor (or portions thereof) either on an unmodified basis, with other Modifications, as Covered Code and/or as part of a Larger Work; and . (b) under Patent Claims infringed by the making, using, or selling of Modifications made by that Contributor either alone and/or in combination with its Contributor Version (or portions of such combination), to make, use, sell, offer for sale, have made, and/or otherwise dispose of: 1) Modifications made by that Contributor (or portions thereof); and 2) the combination of Modifications made by that Contributor with its Contributor Version (or portions of such combination). . (c) the licenses granted in Sections 2.2(a) and 2.2(b) are effective on the date Contributor first makes Commercial Use of the Covered Code. . (d) Notwithstanding Section 2.2(b) above, no patent license is granted: 1) for any code that Contributor has deleted from the Contributor Version; 2) separate from the Contributor Version; 3) for infringements caused by: i) third party modifications of Contributor Version or ii) the combination of Modifications made by that Contributor with other software (except as part of the Contributor Version) or other devices; or 4) under Patent Claims infringed by Covered Code in the absence of Modifications made by that Contributor. . 3. Distribution Obligations. . 3.1. Application of License. The Modifications which You create or to which You contribute are governed by the terms of this License, including without limitation Section 2.2. The Source Code version of Covered Code may be distributed only under the terms of this License or a future version of this License released under Section 6.1, and You must include a copy of this License with every copy of the Source Code You distribute. You may not offer or impose any terms on any Source Code version that alters or restricts the applicable version of this License or the recipients' rights hereunder. However, You may include an additional document offering the additional rights described in Section 3.5. . 3.2. Availability of Source Code. Any Modification which You create or to which You contribute must be made available in Source Code form under the terms of this License either on the same media as an Executable version or via an accepted Electronic Distribution Mechanism to anyone to whom you made an Executable version available; and if made available via Electronic Distribution Mechanism, must remain available for at least twelve (12) months after the date it initially became available, or at least six (6) months after a subsequent version of that particular Modification has been made available to such recipients. You are responsible for ensuring that the Source Code version remains available even if the Electronic Distribution Mechanism is maintained by a third party. . 3.3. Description of Modifications. You must cause all Covered Code to which You contribute to contain a file documenting the changes You made to create that Covered Code and the date of any change. You must include a prominent statement that the Modification is derived, directly or indirectly, from Original Code provided by the Initial Developer and including the name of the Initial Developer in (a) the Source Code, and (b) in any notice in an Executable version or related documentation in which You describe the origin or ownership of the Covered Code. . 3.4. Intellectual Property Matters (a) Third Party Claims. If Contributor has knowledge that a license under a third party's intellectual property rights is required to exercise the rights granted by such Contributor under Sections 2.1 or 2.2, Contributor must include a text file with the Source Code distribution titled "LEGAL" which describes the claim and the party making the claim in sufficient detail that a recipient will know whom to contact. If Contributor obtains such knowledge after the Modification is made available as described in Section 3.2, Contributor shall promptly modify the LEGAL file in all copies Contributor makes available thereafter and shall take other steps (such as notifying appropriate mailing lists or newsgroups) reasonably calculated to inform those who received the Covered Code that new knowledge has been obtained. . (b) Contributor APIs. If Contributor's Modifications include an application programming interface and Contributor has knowledge of patent licenses which are reasonably necessary to implement that API, Contributor must also include this information in the LEGAL file. . (c) Representations. Contributor represents that, except as disclosed pursuant to Section 3.4(a) above, Contributor believes that Contributor's Modifications are Contributor's original creation(s) and/or Contributor has sufficient rights to grant the rights conveyed by this License. . 3.5. Required Notices. You must duplicate the notice in Exhibit A in each file of the Source Code. If it is not possible to put such notice in a particular Source Code file due to its structure, then You must include such notice in a location (such as a relevant directory) where a user would be likely to look for such a notice. If You created one or more Modification(s) You may add your name as a Contributor to the notice described in Exhibit A. You must also duplicate this License in any documentation for the Source Code where You describe recipients' rights or ownership rights relating to Covered Code. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Code. However, You may do so only on Your own behalf, and not on behalf of the Initial Developer or any Contributor. You must make it absolutely clear than any such warranty, support, indemnity or liability obligation is offered by You alone, and You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of warranty, support, indemnity or liability terms You offer. . 3.6. Distribution of Executable Versions. You may distribute Covered Code in Executable form only if the requirements of Section 3.1-3.5 have been met for that Covered Code, and if You include a notice stating that the Source Code version of the Covered Code is available under the terms of this License, including a description of how and where You have fulfilled the obligations of Section 3.2. The notice must be conspicuously included in any notice in an Executable version, related documentation or collateral in which You describe recipients' rights relating to the Covered Code. You may distribute the Executable version of Covered Code or ownership rights under a license of Your choice, which may contain terms different from this License, provided that You are in compliance with the terms of this License and that the license for the Executable version does not attempt to limit or alter the recipient's rights in the Source Code version from the rights set forth in this License. If You distribute the Executable version under a different license You must make it absolutely clear that any terms which differ from this License are offered by You alone, not by the Initial Developer or any Contributor. You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of any such terms You offer. . 3.7. Larger Works. You may create a Larger Work by combining Covered Code with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Code. . 4. Inability to Comply Due to Statute or Regulation. . If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Code due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be included in the LEGAL file described in Section 3.4 and must be included with all distributions of the Source Code. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. . 5. Application of this License. . This License applies to code to which the Initial Developer has attached the notice in Exhibit A and to related Covered Code. . 6. Versions of the License. . 6.1. New Versions. Netscape Communications Corporation ("Netscape") may publish revised and/or new versions of the License from time to time. Each version will be given a distinguishing version number. . 6.2. Effect of New Versions. Once Covered Code has been published under a particular version of the License, You may always continue to use it under the terms of that version. You may also choose to use such Covered Code under the terms of any subsequent version of the License published by Netscape. No one other than Netscape has the right to modify the terms applicable to Covered Code created under this License. . 6.3. Derivative Works. If You create or use a modified version of this License (which you may only do in order to apply it to code which is not already Covered Code governed by this License), You must (a) rename Your license so that the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape", "MPL", "NPL" or any confusingly similar phrase do not appear in your license (except to note that your license differs from this License) and (b) otherwise make it clear that Your version of the license contains terms which differ from the Mozilla Public License and Netscape Public License. (Filling in the name of the Initial Developer, Original Code or Contributor in the notice described in Exhibit A shall not of themselves be deemed to be modifications of this License.) . 7. DISCLAIMER OF WARRANTY. . COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. . 8. TERMINATION. . 8.1. This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. All sublicenses to the Covered Code which are properly granted shall survive any termination of this License. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive. . 8.2. If You initiate litigation by asserting a patent infringement claim (excluding declatory judgment actions) against Initial Developer or a Contributor (the Initial Developer or Contributor against whom You file such action is referred to as "Participant") alleging that: . (a) such Participant's Contributor Version directly or indirectly infringes any patent, then any and all rights granted by such Participant to You under Sections 2.1 and/or 2.2 of this License shall, upon 60 days notice from Participant terminate prospectively, unless if within 60 days after receipt of notice You either: (i) agree in writing to pay Participant a mutually agreeable reasonable royalty for Your past and future use of Modifications made by such Participant, or (ii) withdraw Your litigation claim with respect to the Contributor Version against such Participant. If within 60 days of notice, a reasonable royalty and payment arrangement are not mutually agreed upon in writing by the parties or the litigation claim is not withdrawn, the rights granted by Participant to You under Sections 2.1 and/or 2.2 automatically terminate at the expiration of the 60 day notice period specified above. . (b) any software, hardware, or device, other than such Participant's Contributor Version, directly or indirectly infringes any patent, then any rights granted to You by such Participant under Sections 2.1(b) and 2.2(b) are revoked effective as of the date You first made, used, sold, distributed, or had made, Modifications made by that Participant. . 8.3. If You assert a patent infringement claim against Participant alleging that such Participant's Contributor Version directly or indirectly infringes any patent where such claim is resolved (such as by license or settlement) prior to the initiation of patent infringement litigation, then the reasonable value of the licenses granted by such Participant under Sections 2.1 or 2.2 shall be taken into account in determining the amount or value of any payment or license. . 8.4. In the event of termination under Sections 8.1 or 8.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or any distributor hereunder prior to termination shall survive termination. . 9. LIMITATION OF LIABILITY. . UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. . 10. U.S. GOVERNMENT END USERS. . The Covered Code is a "commercial item," as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer software" and "commercial computer software documentation," as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Code with only those rights set forth herein. . 11. MISCELLANEOUS. . This License represents the complete agreement concerning subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. This License shall be governed by California law provisions (except to the extent applicable law, if any, provides otherwise), excluding its conflict-of-law provisions. With respect to disputes in which at least one party is a citizen of, or an entity chartered or registered to do business in the United States of America, any litigation relating to this License shall be subject to the jurisdiction of the Federal Courts of the Northern District of California, with venue lying in Santa Clara County, California, with the losing party responsible for costs, including without limitation, court costs and reasonable attorneys' fees and expenses. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not apply to this License. . 12. RESPONSIBILITY FOR CLAIMS. . As between Initial Developer and the Contributors, each party is responsible for claims and damages arising, directly or indirectly, out of its utilization of rights under this License and You agree to work with Initial Developer and Contributors to distribute such responsibility on an equitable basis. Nothing herein is intended or shall be deemed to constitute any admission of liability. . 13. MULTIPLE-LICENSED CODE. . Initial Developer may designate portions of the Covered Code as "Multiple-Licensed". "Multiple-Licensed" means that the Initial Developer permits you to utilize portions of the Covered Code under Your choice of the NPL or the alternative licenses, if any, specified by the Initial Developer in the file described in Exhibit A. . EXHIBIT A -Mozilla Public License. . ``The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ . Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. . The Original Code is ______________________________________. . The Initial Developer of the Original Code is ________________________. Portions created by ______________________ are Copyright (C) ______ _______________________. All Rights Reserved. . Contributor(s): ______________________________________. . Alternatively, the contents of this file may be used under the terms of the _____ license (the "[___] License"), in which case the provisions of [______] License are applicable instead of those above. If you wish to allow use of your version of this file only under the terms of the [____] License and not to allow others to use your version of this file under the MPL, indicate your decision by deleting the provisions above and replace them with the notice and other provisions required by the [___] License. If you do not delete the provisions above, a recipient may use your version of this file under either the MPL or the [___] License." . [NOTE: The text of this Exhibit A may differ slightly from the text of the notices in the Source Code files of the Original Code. You should use the text of this Exhibit A rather than the text found in the Original Code Source Code for Your Modifications.] debian/389-ds-base-libs.lintian-overrides0000664000000000000000000000021112321061337015326 0ustar # these are bogus warnings, no libs shipped in a public libdir postinst-has-useless-call-to-ldconfig postrm-has-useless-call-to-ldconfig debian/389-ds-base-libs.install0000664000000000000000000000003712321061337013344 0ustar usr/lib/*/dirsrv/libslapd.so.*