--- likewise-open5-5.0.3991.1.orig/debian/likewise-open.7 +++ likewise-open5-5.0.3991.1/debian/likewise-open.7 @@ -0,0 +1,30 @@ +.\" Title: Likewise Open +.\" Author: +.\" Generator: DocBook XSL Stylesheets v1.72.0 +.\" Date: 03/14/2008 +.\" Manual: +.\" Source: +.\" +.TH "LIKEWISE OPEN" "7" "03/14/2008" "" "" +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.SH "NAME" +likewise\-open \- A suite of tools and services for joining Linux, Unix, and OS X clients to Active Directory domains +.SH "DESCRIPTION" +.PP +Likewise Open is a set of tools and services to enable joining hosts to an Active DIrectory (AD) domain in a single step. The software performs all the necessary system management configuration to enable PAM aware host services to authenticate AD domain users and honor the user's existing set of domain group memberships. +.SH "SUPPORT" +.PP +Likewise Open is a open source initiate of Likewise Software and is open for full community involvement. More information about Likewise Open and Likewise Software can be found at +\fIhttp://www.likewisesoftware.com/community/\fR. You may subscribe to the Likewise Open project mailing lists at +\fIhttp://lists.likewisesoftware.com/\fR. +.SH "SEE ALSO" +.PP + +\fBdomainjoin\-cli(8)\fR, +\fBdomainjoin\-gui(8)\fR +.SH "VERSION" +.PP +This man page is correct for Likewise Open version 4.1. --- likewise-open5-5.0.3991.1.orig/debian/copyright +++ likewise-open5-5.0.3991.1/debian/copyright @@ -0,0 +1,151 @@ +This package was debianized by Thierry Carrez +on Wed, 11 Mar 2009 09:58:41 +0100, building on initial packaging work by +Gerald Carter and Likewise Open 4 packaging +by Rick Clark . + +The source was obtained from: + + http://archives.likewisesoftware.com/likewise-open/src/ + +Copyright: + Likewise Open code is Copyright (c) Likewise Software 2004-2008 + + This source package also includes code from the following projects: + + Samba 3.0 Client libraries and tools + Copyright © 1992-2008 Andrew Tridgell and the Samba Team + + Novell DCE-RPC + Copyright (c) 2007, Novell, Inc. + (c) Copyright 1991 OPEN SOFTWARE FOUNDATION, INC. + (c) Copyright 1991 HEWLETT-PACKARD COMPANY + (c) Copyright 1991 DIGITAL EQUIPMENT CORPORATION + ncklib/com/cominit_ux.c file is: + Copyright (c) 1983, 1993 The Regents of the University of California + uuid/get_802_addr.c is Copyright 1998-2007 The OpenLDAP Foundation + + libunistr + Copyright (C) 1996-2008 Free Software Foundation, Inc. + + OpenLDAP: + Copyright 1998-2007 The OpenLDAP Foundation + +Licensing: + + This package is composed of components released under varying + licenses. + + Likewise Open is provided under the terms of the GNU General + Public License (GPL version 2) and the GNU Library General + Public License (LGPL version 2.1), with the following special + exception granted in the libgss and lsass components for + the sole purpose of linking with the OpenSSL libraries: + + In addition, as a special exception, Likewise Software give + permission to link the code of portions of this program with the + OpenSSL library under certain conditions as described in each + individual source file, and distribute linked combinations + including the two. + + You must obey the GNU General Public License and Library Public + License in all respects for all of the code used other than + OpenSSL. If you modify file(s) with this exception, you may extend + this exception to your version of the file(s), but you are not + obligated to do so. If you do not wish to do so, delete this + exception statement from your version. If you delete this exception + statement from all source files in the program, then also delete it + here. + + On Debian GNU/Linux systems, the complete text of the GNU General + Public License v2 can be found in `/usr/share/common-licenses/GPL-2', + while the terms of the GNU Library General Public License v2.1 can + be found in `/usr/share/common-licenses/LGPL-2.1'. + + Samba 3.0 Client libraries and tools + This code is being released under the terms of the GNU General + Public License (GPL version 2). + + Novell DCE-RPC + This software is provided under the terms of the BSD License. + On Debian GNU/Linux systems, the complete text of the BSD + License can be found in '/usr/share/common-licenses/BSD'. + ncklib/com/cominit_ux.c is provided under the following terms: + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by the University of + * California, Berkeley and its contributors. + * 4. Neither the name of the University nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + uuid/get_802_addr.c is provided under the terms of the OpenLDAP Public + License (see below). + + libunistr + This software is provided under the terms of the GNU Library General + Public License (LGPL version 2.1) + + OpenLDAP + OpenLDAP code is provided under the following terms: + + The OpenLDAP Public License + Version 2.7, 7 September 2001 + + Redistribution and use of this software and associated documentation + ("Software"), with or without modification, are permitted provided + that the following conditions are met: + + 1. Redistributions of source code must retain copyright statements + and notices, + + 2. Redistributions in binary form must reproduce applicable copyright + statements and notices, this list of conditions, and the following + disclaimer in the documentation and/or other materials provided + with the distribution, and + + 3. Redistributions must contain a verbatim copy of this document. + + The OpenLDAP Foundation may revise this license from time to time. + Each revision is distinguished by a version number. You may use + this Software under terms of this license revision or under the + terms of any subsequent revision of the license. + + THIS SOFTWARE IS PROVIDED BY THE OPENLDAP FOUNDATION AND ITS + CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT + SHALL THE OPENLDAP FOUNDATION, ITS CONTRIBUTORS, OR THE AUTHOR(S) + OR OWNER(S) OF THE SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN + ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + + The names of the authors and copyright holders must not be used in + advertising or otherwise to promote the sale, use or other dealing + in this Software without specific, written prior permission. Title + to copyright in this Software shall at all times remain with + copyright holders. + --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5-rpc.npcmuxd.init +++ likewise-open5-5.0.3991.1/debian/likewise-open5-rpc.npcmuxd.init @@ -0,0 +1,78 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: likewise-open-npcmuxd +# Required-Start: $network $local_fs $remote_fs +# Required-Stop: $network $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 1 +# Short-Description: Start Likewise Named Pipe Client Service +# Description: Start and Stop the Likewise Named Pipe Client Service +### END INIT INFO + +# Author: Thierry Carrez + +PATH=/usr/sbin:/usr/bin:/sbin:/bin +NAME=npcmuxd +DESC="Likewise Named Pipe Client Service" +DAEMON=/usr/sbin/$NAME +PIDFILE=/var/run/$NAME.pid +PROG_ARGS="--start-as-daemon" +PROG_ERR=/var/run/likewise-npcmuxd.err + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +#[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +#[ -f /etc/default/rcS ] && . /etc/default/rcS + +#unset TMPDIR + +# Define LSB functions. +. /lib/lsb/init-functions + +case "$1" in + start) + log_daemon_msg "Starting $DESC" + if [ -f "$PROG_ERR" ]; then + rm -f "$PROG_ERR" + fi + # --quiet --oknodo are from our initscript + start-stop-daemon --start --oknodo --exec $DAEMON -- $PROG_ARGS + status=$? + sleep 1 # From likewise initscript + log_end_msg $status + ;; + + stop) + log_daemon_msg "Stopping $DESC" + start-stop-daemon --stop --quiet --exec $DAEMON --retry 5 + status=$? + log_end_msg $status + ;; + + status) + status_of_proc $DAEMON $NAME && exit 0 || exit $? + ;; + + restart|force-reload) + $0 stop && sleep 1 && $0 start + status=$? + ;; + + reload) + log_daemon_msg "Reloading $DESC" + start-stop-daemon --stop --signal HUP --pidfile $PIDFILE + status=$? + log_end_msg $status + ;; + + *) + echo "Usage: $0 {start|stop|status|restart|reload|force-reload}" + exit 1 + ;; + +esac +exit $status --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5-rpc.dcerpcd.init +++ likewise-open5-5.0.3991.1/debian/likewise-open5-rpc.dcerpcd.init @@ -0,0 +1,80 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: likewise-open-dcerpcd +# Required-Start: $network $local_fs $remote_fs +# Required-Stop: $network $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 1 +# Short-Description: Start Likewise DCE/RPC Portmapper Service +# Description: Start and Stop the Likewise DCE/RPC Portmapper Service +### END INIT INFO + +# Author: Thierry Carrez + +PATH=/usr/sbin:/usr/bin:/sbin:/bin +NAME=dcerpcd +DESC="Likewise DCE/RPC Portmapper Service" +DAEMON=/usr/sbin/$NAME +PIDFILE=/var/run/$NAME.pid +PROG_ERR=/var/run/likewise-rpcd.err + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +#[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +#[ -f /etc/default/rcS ] && . /etc/default/rcS + +#unset TMPDIR + +# Define LSB functions. +. /lib/lsb/init-functions + +case "$1" in + start) + log_daemon_msg "Starting $DESC" + if [ -f "$PROG_ERR" ]; then + rm -f "$PROG_ERR" + fi + # Setup endpoint + mkdir -p "/var/rpc" + rm -f "/var/rpc/epmapper" + # --quiet --oknodo are from our initscript + start-stop-daemon --start --oknodo --exec $DAEMON + status=$? + sleep 1 # From likewise initscript + log_end_msg $status + ;; + + stop) + log_daemon_msg "Stopping $DESC" + start-stop-daemon --stop --quiet --exec $DAEMON --retry 5 + status=$? + log_end_msg $status + ;; + + status) + status_of_proc $DAEMON $NAME && exit 0 || exit $? + ;; + + restart|force-reload) + $0 stop && sleep 1 && $0 start + status=$? + ;; + + reload) + log_daemon_msg "Reloading $DESC" + start-stop-daemon --stop --signal HUP --pidfile $PIDFILE + status=$? + log_end_msg $status + ;; + + *) + echo "Usage: $0 {start|stop|status|restart|reload|force-reload}" + exit 1 + ;; + +esac +exit $status --- likewise-open5-5.0.3991.1.orig/debian/domainjoin-cli.8 +++ likewise-open5-5.0.3991.1/debian/domainjoin-cli.8 @@ -0,0 +1,246 @@ +.\" Title: domainjoin-cli +.\" Author: +.\" Generator: DocBook XSL Stylesheets v1.72.0 +.\" Date: 03/14/2008 +.\" Manual: +.\" Source: +.\" +.TH "DOMAINJOIN\-CLI" "8" "03/14/2008" "" "" +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.SH "NAME" +domainjoin\-cli \- Join a host to an Active Directory domain +.SH "SYNOPSIS" +.HP 15 +\fBdomainjoin\-cli\fR [\fIoptions\fR] join [\fB\-\-ou\fR\ \fIorganizational_unit\fR] +.br +[\fB\-\-enable\fR\ \fImodule\fR...] [\fB\-\-disable\fR\ \fImodule\fR...] +.br +[\fB\-\-preview\fR] [\fB\-\-advanced\fR] [\fB\-\-details\fR\ \fImodule\fR] +.br +\fIdomain\fR \fIusername\fR [\fIpassword\fR] +.HP 15 +\fBdomainjoin\-cli\fR [\fIoptions\fR] leave +.br +[\fB\-\-enable\fR\ \fImodule\fR...] [\fB\-\-disable\fR\ \fImodule\fR...] +.br +[\fB\-\-preview\fR] [\fB\-\-advanced\fR] [\fB\-\-details\fR\ \fImodule\fR] +.br +[\fIusername\fR\ [\fIpassword\fR]] +.HP 15 +\fBdomainjoin\-cli\fR [\fIoptions\fR] query +.HP 15 +\fBdomainjoin\-cli\fR [\fIoptions\fR] fixfqdn +.HP 15 +\fBdomainjoin\-cli\fR [\fIoptions\fR] setname \fIname\fR +.SH "DESCRIPTION" +.PP + +\fBdomainjoin\-cli\fR +is the command\-line version of the +\fILikewise\fR +AD domain join tool. In a basic invocation, +\fBdomainjoin\-cli\fR +will join the current machine into an AD domain, enable authentication of AD users, and enable group policy if it is available. +.PP +For systems with sensitive configurations, +\fBdomainjoin\-cli\fR +offers fine\-grained control over modifications to system configuration files that are typically required during a join, such as editing +\fI/etc/nsswitch.conf\fR +or the system PAM setup. +.SH "USAGE" +.SS "Commands" +.PP + +\fBdomainjoin\-cli\fR +supports the following major modes of operation: +.PP +join +.RS 4 +Joins the machine to the AD domain +\fIdomain\fR +and configures AD authentication and group policy (where applicable). This operation requires valid AD credentials for +\fIdomain\fR +to be specified as +\fIusername\fR +and +\fIpassword\fR. If +\fIpassword\fR +is not specified on the command line, +\fBdomainjoin\-cli\fR +will prompt you for it. +.sp + +\fBdomainjoin\-cli\fR +supports joining the machine to a specific OU (Organizational Unit) with +\fB\-\-ou\fR \fIorganizational_unit\fR. +.RE +.PP +leave +.RS 4 +Leaves the currently\-joined AD domain and deconfigures AD authentication and group policy (where applicable). +.sp +In order to actually disable the machine account in AD, either administrative credentials for +\fIdomain\fR +or the same credentials originally used to join the machine must be specified as +\fIusername\fR +and +\fIpassword\fR. If +\fIpassword\fR +is not specified on the command line, +\fBdomainjoin\-cli\fR +will prompt you for it. +.sp +If no credentials are specified, the machine will no longer behave as a member of +\fIdomain\fR +but its machine account will remain enabled in AD. +.RE +.PP +query +.RS 4 +Displays information about the currently\-joined AD domain and OU. +.RE +.PP +fixfqdn +.RS 4 +Makes local configuration modifications necessary to ensure that the fully\-qualified domain name of the machine is forward\- and backward\-resolvable. This can work around domain join issues on networks with sub\-optimal DNS setups. +.RE +.PP +setname +.RS 4 +Changes the hostname of this machine to +\fIname\fR. As it is necessary to have a unique, non\-generic name before joining AD, this operation is provided as a convenient way to quickly rename this computer before performing a join. +.RE +.SS "Common options" +.PP +\fB\-\-log\fR \fIfilename\fR +.RS 4 +Log details about the operation to +\fIfile\fR. If +\fIfile\fR +is ".", logging is directed to the console. +.RE +.PP +\fB\-\-loglevel\fR +.RS 4 +Specifies the level of logging information which should be written to the log file. +.RE +.PP +\fB\-\-help\fR +.RS 4 +Displays brief usage and help information. No operation is performed. +.RE +.SS "Join and leave options" +.PP +\fB\-\-ou\fR \fIorganizational_unit\fR +.RS 4 +Joins the machine to the OU +\fIorganizational_unit\fR +instead of the default "Computers" OU. The OU to which a machine is joined determines which users will be able to authenticate against the machine and which group policies will be applied. This option has no effect when leaving a domain. +.RE +.PP +\fB\-\-enable\fR \fImodule\fR +.RS 4 +Explicitly enables the configuration module +\fImodule\fR +during the join or leave operation. +.RE +.PP +\fB\-\-disable\fR \fImodule\fR +.RS 4 +Explicitly disables the configuration module +\fImodule\fR +during the join or leave operation. +.sp +Note that some modules are necessary for the proper operation of +\fILikewise\fR +while joined to AD. If you attempt to disable such a module, +\fBdomainjoin\-cli\fR +will refuse to proceed with a join operation. +.sp +For some modules, it is possible to make the relevant configuration changes by hand; +\fBdomainjoin\-cli\fR +will inform you of the necessary changes and will proceed with the module disabled if it detects that the changes have been made. +.RE +.PP +\fB\-\-details\fR \fImodule\fR +.RS 4 +Provide details about module +\fImodule\fR +and what specific configuration changes it would perform during a join or leave operation. No actual operation is performed. +.RE +.PP +\fB\-\-preview\fR +.RS 4 +Provide a summary of what configuration modules would be run during a join or leave operation. No actual operation is performed. +.RE +.PP +\fB\-\-advanced\fR +.RS 4 +Turns on debugging information during leave and join operations and provides more verbose output when using +\fB\-\-preview\fR. This is generally only helpful when diagnosing unusual system or network configuration issues. +.RE +.SH "EXAMPLES" +.PP +Example invocations of +\fBdomainjoin\-cli\fR +and their effects follow: +.sp +.RS 4 +.nf +$ domainjoin\-cli join sales.my\-company.com Administrator@sales rosebud +.fi +.RE +.PP +Joins the AD domain +sales.my\-company.com +using +Administrator +as the username and +rosebud +as the password. This is the typical join scenario. +.sp +.RS 4 +.nf +$ domainjoin\-cli \-\-log . leave +.fi +.RE +.PP +Leaves the current AD domain without attempting to disable the machine account as no user credentials were specified. Information about the process will be logged to the console at the default logging level. +.sp +.RS 4 +.nf +$ domainjoin\-cli join \-\-disable nsswitch sales.my\-company.com Administrator@sales +.fi +.RE +.PP +Joins the AD domain +sales.my\-company.com +using +Administrator +as the username and prompting for the password. If possible, nsswitch configuration will not be modified. +.sp +.RS 4 +.nf +$ domainjoin\-cli join \-\-preview sales.my\-company.com Administrator@sales rosebud +.fi +.RE +.PP +Show what configuration modules would be run when joining the AD domain +sales.my\-company.com. +.sp +.RS 4 +.nf +$ domainjoin\-cli join \-\-details pam sales.my\-company.com Administrator@sales rosebud +.fi +.RE +.PP +Show what changes would be made to the system by the +pam +module when joining the AD domain +sales.my\-company.com. +.SH "VERSION" +.PP +This man page is correct for Likewise Open version 4.1. --- likewise-open5-5.0.3991.1.orig/debian/likewise-open-gui.desktop +++ likewise-open5-5.0.3991.1/debian/likewise-open-gui.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Active Directory membership +Comment=Join or leave an Active Directory domain using Likewise-Open +Exec=/usr/bin/gksu /usr/bin/domainjoin-gui +Terminal=false +Type=Application +Icon=/usr/share/likewise-open5/domainjoin-logo.png +Categories=System;Settings; +OnlyShowIn=GNOME;XFCE; --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5-lsass.pam-auth-update +++ likewise-open5-5.0.3991.1/debian/likewise-open5-lsass.pam-auth-update @@ -0,0 +1,21 @@ +Name: Likewise Open +Default: yes +Priority: 250 +Conflicts: winbind +Auth-Type: Primary +Auth: + [success=end default=ignore] pam_lsass.so try_first_pass +Auth-Initial: + [success=end default=ignore] pam_lsass.so +Account-Type: Primary +Account: + [success=ok new_authtok_reqd=ok default=ignore] pam_lsass.so unknown_ok + [success=end new_authtok_reqd=done default=ignore] pam_lsass.so +Session-Type: Additional +Session: + sufficient pam_lsass.so +Password-Type: Primary +Password: + [success=end default=ignore] pam_lsass.so use_authtok try_first_pass +Password-Initial: + [success=end default=ignore] pam_lsass.so --- likewise-open5-5.0.3991.1.orig/debian/changelog +++ likewise-open5-5.0.3991.1/debian/changelog @@ -0,0 +1,21 @@ +likewise-open5 (5.0.3991.1-0ubuntu2) jaunty; urgency=low + + * debian/patches/ask-for-reboot.diff: Ask for a reboot after domain join + since it is necessary before domain graphical logins (LP: #352934) + * Removed debian/patches/graceful_dbus_restart.diff since it is not + sufficient and we now ask for a reboot + * debian/patches/abstractions-cleanup.diff: Use a more precise mark to + delimitate likewise mods, to avoid destructive cleanup of the appamor.d + abstractions/nameservice file (LP: #354498) + * debian/likewise-open5-lsass.prerm: Fix typo preventing pam-auth-update + profile from being unregistered (LP: #354568) + * debian/likewise-open5.NEWS: Added note about upgrading/replacing an + existing likewise-open (4.1) install (LP: #347250) + + -- Thierry Carrez Mon, 06 Apr 2009 13:51:17 +0200 + +likewise-open5 (5.0.3991.1-0ubuntu1) jaunty; urgency=low + + * Initial packaging (LP: #323601) + + -- Thierry Carrez Tue, 17 Mar 2009 13:36:50 +0100 --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5-rpc.install +++ likewise-open5-5.0.3991.1/debian/likewise-open5-rpc.install @@ -0,0 +1,23 @@ +usr/sbin/dcerpcd +usr/sbin/npcmuxd + +usr/lib/likewise-open5/libnaf_ip.so +usr/lib/likewise-open5/libnaf_np.so +usr/lib/likewise-open5/libprot_ncacn.so +usr/lib/likewise-open5/libprot_ncadg.so +usr/lib/likewise-open5/liballoc.so* +usr/lib/likewise-open5/libauth_gss_negotiate.so* +usr/lib/likewise-open5/libdcerpc.so* +usr/lib/likewise-open5/libdcethread.so* +usr/lib/likewise-open5/libkrb5pac.so* +usr/lib/likewise-open5/libktkrb5.so* +usr/lib/likewise-open5/libktutils.so* +usr/lib/likewise-open5/liblsa.so* +usr/lib/likewise-open5/libmpr.so* +usr/lib/likewise-open5/libmsrpc.so* +usr/lib/likewise-open5/libnetapi.so* +usr/lib/likewise-open5/libnetlogon.so* +usr/lib/likewise-open5/libnpc.so* +usr/lib/likewise-open5/libsamr.so* +usr/lib/likewise-open5/libschannel.so* +usr/lib/likewise-open5/libsmbclient.so* --- likewise-open5-5.0.3991.1.orig/debian/compat +++ likewise-open5-5.0.3991.1/debian/compat @@ -0,0 +1 @@ +5 --- likewise-open5-5.0.3991.1.orig/debian/rules +++ likewise-open5-5.0.3991.1/debian/rules @@ -0,0 +1,145 @@ +#!/usr/bin/make -f + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# Set the host and build architectures for use with config.cache loading, +# cross-building, etc. +DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) + +export DEB_HOST_GNU_TYPE +export DEB_BUILD_GNU_TYPE +export DEB_HOST_ARCH_OS +pyversion := $(shell pyversions -vd) + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +include /usr/share/quilt/quilt.make + +PKGNAME=likewise-open5 +DESTDIR=`pwd`/build-install +PREFIX=/usr +LIBEXECDIR=$(PREFIX)/lib/$(PKGNAME) +LOCALSTATEDIR=/var/lib/$(PKGNAME) +SYSCONFDIR=/etc/$(PKGNAME) + +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + conf_args += --build $(DEB_BUILD_GNU_TYPE) +else + conf_args += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +endif + +configure: configure-stamp +configure-stamp: $(QUILT_STAMPFN) + dh_testdir + ./autogen.sh + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + env BUILD_LOCALSTATEDIR=$(LOCALSTATEDIR) \ + BUILD_SYSCONFDIR=$(SYSCONFDIR) \ + BUILD_LIBDIR="lib/$(PKGNAME)" \ + BUILD_PREFIXDIR=$(PREFIX) \ + BUILD_LIBEXECDIR=$(LIBEXECDIR) \ + BUILD_MAKE_FLAGS="SCRIPTDIR=$(LIBEXECDIR)" \ + ./Build.sh + + # Generate VERSION + mkdir -p $(DESTDIR)/usr/share/$(PKGNAME) + packaging/scripts/mkversion.sh > $(DESTDIR)/usr/share/$(PKGNAME)/VERSION + + touch build-stamp +clean: clean-patched unpatch + +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Move from likewise to $(PKGNAME) + mv $(DESTDIR)/$(PREFIX)/share/likewise/* $(DESTDIR)/$(PREFIX)/share/$(PKGNAME)/ + + # Move domainjoin support files + for file in ConfigureLogin gpcron; do \ + /bin/mv $(DESTDIR)/$(PREFIX)/bin/$$file $(DESTDIR)/$(LIBEXECDIR)/; \ + chmod 755 $(DESTDIR)/$(LIBEXECDIR)/$$file; \ + done + + # PAM stuff should be in /lib rather than /usr/lib/$(PKGNAME) + mv $(DESTDIR)/lib/$(PKGNAME)/libnss* $(DESTDIR)/lib/ + mv $(DESTDIR)/lib/$(PKGNAME)/security $(DESTDIR)/lib/ + + # Install debian-specific stuff + mkdir -p $(DESTDIR)/usr/share/applications $(DESTDIR)/usr/share/icons + install -D -m 644 debian/likewise-open-gui.desktop $(DESTDIR)/usr/share/applications/ + install -D -m 644 debian/likewise-open-gui-kde.desktop $(DESTDIR)/usr/share/applications/ + install -D -m 644 debian/likewise-gui.xpm $(DESTDIR)/usr/share/icons/ + install -D -m 644 debian/$(PKGNAME)-lsass.pam-auth-update $(DESTDIR)/usr/share/pam-configs/$(PKGNAME)-lsass + + # Fix configuration files + install -m644 config/likewise-krb5-ad.conf $(DESTDIR)/$(SYSCONFDIR) + cat $(DESTDIR)/$(SYSCONFDIR)/lsassd.conf |\ + sed 's#.*homedir-template\s*=.*$$# homedir-template = %H/%D/%U#' |\ + sed 's#.*login-shell-template\s*=.*# login-shell-template = /bin/bash#' |\ + sed 's/.*cell-support\s*=.*/ cell-support = unprovisioned/' \ + > $(DESTDIR)/$(SYSCONFDIR)/lsassd.conf.new && \ + /bin/mv -f $(DESTDIR)/$(SYSCONFDIR)/lsassd.conf.new $(DESTDIR)/$(SYSCONFDIR)/lsassd.conf + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_install --sourcedir=$(DESTDIR) --list-missing \ + --exclude=.libs --exclude=.a --exclude=.la --exclude=usr/include + dh_installinit -p$(PKGNAME)-rpc --name dcerpcd -- start 91 2 3 4 5 . stop 9 1 . + dh_installinit -p$(PKGNAME)-rpc --name npcmuxd -- start 92 2 3 4 5 . stop 8 1 . + dh_installinit -p$(PKGNAME)-netlogon --name netlogond -- start 92 2 3 4 5 . stop 8 1 . + dh_installinit -p$(PKGNAME)-eventlog --name eventlogd -- start 92 2 3 4 5 . stop 8 1 . + dh_installinit -p$(PKGNAME)-lsass --name lsassd -- start 93 2 3 4 5 . stop 7 1 . + dh_installman + dh_desktop + dh_link + dh_strip + dh_compress + dh_fixperms + dh_perl /usr/lib/$(PKGNAME) + dh_makeshlibs -N$(PKGNAME)-lsass -n + dh_makeshlibs -p$(PKGNAME)-lsass + dh_installdeb + dh_shlibdeps -l`pwd`/debian/$(PKGNAME)-libs/$(PREFIX)/lib/$(PKGNAME) + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5-rpc.dirs +++ likewise-open5-5.0.3991.1/debian/likewise-open5-rpc.dirs @@ -0,0 +1,2 @@ +var/lib/likewise-open5/run +var/lib/likewise-open5/rpc --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5-eventlog.install +++ likewise-open5-5.0.3991.1/debian/likewise-open5-eventlog.install @@ -0,0 +1,6 @@ +etc/likewise-open5/eventlogd.conf +usr/bin/lw-eventlog-cli +usr/bin/lw-addevent +usr/lib/likewise-open5/libeventlogutils.so* +usr/lib/likewise-open5/libeventlog.so* +usr/sbin/eventlogd --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5.install +++ likewise-open5-5.0.3991.1/debian/likewise-open5.install @@ -0,0 +1,4 @@ +usr/lib/likewise-open5/gpcron +usr/lib/likewise-open5/ConfigureLogin +usr/lib/likewise-open5/libdomainjoin.so* +usr/bin/domainjoin-cli --- likewise-open5-5.0.3991.1.orig/debian/likewise-open-gui-kde.desktop +++ likewise-open5-5.0.3991.1/debian/likewise-open-gui-kde.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Active Directory membership +Comment=Join or leave an Active Directory domain using Likewise-Open +Exec=/usr/bin/kdesu /usr/bin/domainjoin-gui +Terminal=false +Type=Application +Icon=/usr/share/likewise-open5/domainjoin-logo.png +Categories=System;Settings; +OnlyShowIn=KDE; --- likewise-open5-5.0.3991.1.orig/debian/domainjoin-gui.8 +++ likewise-open5-5.0.3991.1/debian/domainjoin-gui.8 @@ -0,0 +1,35 @@ +.\" Title: domainjoin-gui +.\" Author: +.\" Generator: DocBook XSL Stylesheets v1.72.0 +.\" Date: 03/14/2008 +.\" Manual: +.\" Source: +.\" +.TH "DOMAINJOIN\-GUI" "8" "03/14/2008" "" "" +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.SH "NAME" +domainjoin\-gui \- Graphically join a host to an Active Directory domain +.SH "SYNOPSIS" +.HP 15 +\fBdomainjoin\-gui\fR +.SH "DESCRIPTION" +.PP +The +\fBdomainjoin\-gui\fR +command launches a graphical application that provides a one\-step method of joining Linux, Unix, and OS X hosts into an Active Directory domain. The tool performs all the system management configuration necessary to enable local PAM aware services so that they will be capable of authenticating AD domain user login requests. +.SH "DEBUGGING INFORMATION" +.PP +In the event that the local host machine fails to successfully join the AD domain, +\fBdomainjoin\-gui\fR +dialog will allow you to save the log file containing the verbose debugging information obtained during the join attempt. This information may then be used to obtain support from Likewise Software or the Likewise Open community mailing lists. +.SH "SEE ALSO" +.PP + +\fBlikewise\-open(7)\fR, +\fBdomainjoin\-cli(8)\fR +.SH "VERSION" +.PP +This man page is correct for Likewise Open version 4.1. --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5-libs.install +++ likewise-open5-5.0.3991.1/debian/likewise-open5-libs.install @@ -0,0 +1,10 @@ +usr/lib/likewise-open5/libunistr.so* +usr/lib/likewise-open5/libldap*so* +usr/lib/likewise-open5/liblber*so* +usr/lib/likewise-open5/libgpglib.so* +usr/lib/likewise-open5/libcentutils.so* +usr/lib/likewise-open5/liblwps-utils.so* +usr/lib/likewise-open5/liblwpsapi.so* + +usr/share/likewise-open5/VERSION +etc/likewise-open5/likewise-krb5-ad.conf --- likewise-open5-5.0.3991.1.orig/debian/control +++ likewise-open5-5.0.3991.1/debian/control @@ -0,0 +1,80 @@ +Source: likewise-open5 +Section: net +Priority: optional +Maintainer: Ubuntu MOTU Developers +Build-Depends: libpam0g-dev, uuid-dev, + dpkg-dev (>= 1.13.9), libpam-runtime (>= 0.76-13.1), debhelper (>= 5), + autoconf (>=2.53), libglade2-dev, automake, quilt, automake, + libssl-dev, libtool, libsqlite3-dev, libkrb5-dev, bison, rsync +Standards-Version: 3.8.0 +Vcs-Browser: http://lobugs.likewisesoftware.com/ +Homepage: http://www.likewisesoftware.com/ + +Package: likewise-open5 +Architecture: any +Depends: ${shlibs:Depends}, ${perl:Depends} +Suggests: likewise-open5-gui +Conflicts: likewise-open +Replaces: likewise-open +Description: Authentication services for Active Directory Domains + Likewise Open 5 provides a means of integrating Unix desktops and servers + into an Active Directory (AD) environment by providing a means for hosts + to join the domain as member servers and make the Windows users and groups + available to other Unix applications and services via the PAM and Name + Service Switch libraries. + +Package: likewise-open5-libs +Architecture: any +Depends: ${shlibs:Depends} +Conflicts: likewise-open +Replaces: likewise-open +Description: Likewise Open 5 base libraries + Base libraries required by Likewise Open 5 applications + +Package: likewise-open5-lsass +Architecture: any +Depends: ${shlibs:Depends}, libpam-runtime (>= 0.76-13.1), libpam-modules +Recommends: krb5-user +Suggests: sqlite3 +Provides: domain-lsa-service +Conflicts: domain-lsa-service, likewise-open +Replaces: domain-lsa-service, likewise-open +Description: Likewise Open 5 Security Authority Service + This package provides the Likewise Open 5 Security Authority daemon together + with supporting libraries and PAM integration files. + +Package: likewise-open5-eventlog +Architecture: any +Depends: ${shlibs:Depends} +Recommends: likewise-open5-lsass +Conflicts: likewise-open +Replaces: likewise-open +Description: Likewise Open 5 Auditing and Logging Service + This package provides the Likewise Open 5 Auditing and Logging daemon and + supporting libraries. + +Package: likewise-open5-netlogon +Architecture: any +Depends: ${shlibs:Depends} +Conflicts: likewise-open +Replaces: likewise-open +Description: Likewise Open 5 DC location service + Likewise Open 5 Domain Controller location daemon and supporting libraries. + +Package: likewise-open5-rpc +Architecture: any +Depends: ${shlibs:Depends} +Conflicts: likewise-open +Replaces: likewise-open +Description: Likewise Open 5 DCE/RPC runtime environment and libraries + Likewise Open 5 DCE/RPC daemons, runtime environment and libraries. + +Package: likewise-open5-gui +Architecture: any +Depends: ${shlibs:Depends} +Conflicts: likewise-open-gui +Replaces: likewise-open-gui +Description: Desktop utility for joining Active Directory domains + Likewise Open 5 graphical desktop utility you can use to join Active Directory + domains. + --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5-lsass.install +++ likewise-open5-5.0.3991.1/debian/likewise-open5-lsass.install @@ -0,0 +1,57 @@ +etc/likewise-open5/lsassd.conf +etc/likewise-open5/pstore.conf + +lib/libnss_lsass.so.* +lib/security/pam_lsass.so +usr/share/pam-configs/likewise-open5-lsass + +usr/bin/lw-add-group +usr/bin/lw-add-user +usr/bin/lw-del-group +usr/bin/lw-del-user +usr/bin/lw-enum-groups +usr/bin/lw-enum-users +usr/bin/lw-find-by-sid +usr/bin/lw-find-group-by-id +usr/bin/lw-find-group-by-name +usr/bin/lw-find-user-by-id +usr/bin/lw-find-user-by-name +usr/bin/lw-get-log-info +usr/bin/lw-get-metrics +usr/bin/lw-get-status +usr/bin/lw-list-groups +usr/bin/lw-mod-user +usr/bin/lw-refresh-configuration +usr/bin/lw-set-log-level +usr/bin/lw-update-dns +usr/bin/lw-trace-info +usr/bin/lw-ypcat +usr/bin/lw-ypmatch +usr/bin/lw-dump-machine-acct + +usr/lib/likewise-open5/libgssntlm.so* +usr/lib/likewise-open5/liblsaaccess.so* +usr/lib/likewise-open5/liblsaauth.so* +usr/lib/likewise-open5/liblsaclient.so* +usr/lib/likewise-open5/liblsadb.so* +usr/lib/likewise-open5/liblsaipc.so* +usr/lib/likewise-open5/liblsajoin.so* +usr/lib/likewise-open5/liblsakrb5.so* +usr/lib/likewise-open5/liblsaldap.so* +usr/lib/likewise-open5/liblsalog_r.so* +usr/lib/likewise-open5/liblsasqlite.so* +usr/lib/likewise-open5/liblsasrvutils.so* +usr/lib/likewise-open5/liblsass_auth_provider_ad.so* +usr/lib/likewise-open5/liblsass_auth_provider_local.so* +usr/lib/likewise-open5/liblsaunistr.so* +usr/lib/likewise-open5/liblsautils.so* +usr/lib/likewise-open5/libntlmcommon.so* +usr/lib/likewise-open5/libntlmserver.so* +usr/lib/likewise-open5/libwbclient.so* +usr/lib/likewise-open5/lwicompat_v*.so* + +usr/lib/likewise-open5/liblwdns.so* +usr/lib/likewise-open5/liblwps-sqldb.so* +usr/lib/likewise-open5/libntlmcommon.so* +usr/lib/likewise-open5/libntlmserver.so* +usr/sbin/lsassd --- likewise-open5-5.0.3991.1.orig/debian/likewise-gui.xpm +++ likewise-open5-5.0.3991.1/debian/likewise-gui.xpm @@ -0,0 +1,166 @@ +/* XPM */ +static char * likewise_logo_xpm[] = { +"58 40 123 2", +" c None", +". c #00005A", +"+ c #000059", +"@ c #0060CD", +"# c #0060CE", +"$ c #0060CF", +"% c #0060CC", +"& c #0061CE", +"* c #0061CD", +"= c #000057", +"- c #0061CF", +"; c #000058", +"> c #00025B", +", c #0062D0", +"' c #000056", +") c #000055", +"! c #000C67", +"~ c #005FCB", +"{ c #00035D", +"] c #000D68", +"^ c #002B8C", +"/ c #004EB8", +"( c #005FCC", +"_ c #00025C", +": c #001774", +"< c #00399D", +"[ c #0052BC", +"} c #005CC8", +"| c #00126F", +"1 c #0065D3", +"2 c #001471", +"3 c #0055BF", +"4 c #0064D2", +"5 c #0062CF", +"6 c #000864", +"7 c #003193", +"8 c #0059C3", +"9 c #000B67", +"0 c #004DB6", +"a c #0064D1", +"b c #0063CF", +"c c #0063D1", +"d c #000863", +"e c #005DC9", +"f c #0062CE", +"g c #0063D0", +"h c #0063D2", +"i c #00045E", +"j c #000E6B", +"k c #00288B", +"l c #004BB4", +"m c #0056C0", +"n c #004AB1", +"o c #004CB6", +"p c #0057C2", +"q c #005ECB", +"r c #00015B", +"s c #0053BF", +"t c #005DCA", +"u c #000A65", +"v c #000A66", +"w c #000E6A", +"x c #0054C0", +"y c #0064D3", +"z c #0049B1", +"A c #000053", +"B c #000051", +"C c #000054", +"D c #000B66", +"E c #005ECA", +"F c #000763", +"G c #001776", +"H c #004CB5", +"I c #00005B", +"J c #0058C3", +"K c #005FCD", +"L c #000C68", +"M c #00106C", +"N c #0059C5", +"O c #004EB9", +"P c #000B68", +"Q c #0054BD", +"R c #000052", +"S c #005CC9", +"T c #0049B2", +"U c #002688", +"V c #000964", +"W c #000661", +"X c #0054BF", +"Y c #001371", +"Z c #005AC6", +"` c #0057C3", +" . c #002182", +".. c #004DB7", +"+. c #004FB8", +"@. c #00106D", +"#. c #00379D", +"$. c #0066D5", +"%. c #0065D4", +"&. c #000E6C", +"*. c #00025D", +"=. c #000D69", +"-. c #0051BD", +";. c #0059C6", +">. c #0059C7", +",. c #00015C", +"'. c #002A8C", +"). c #0050BC", +"!. c #000762", +"~. c #001472", +"{. c #0050BA", +"]. c #000A67", +"^. c #000C69", +"/. c #00288A", +"(. c #004AB2", +"_. c #000865", +":. c #002588", +"<. c #004BB5", +"[. c #000D6B", +"}. c #0052BD", +"|. c #000562", +"1. c #005ECC", +"2. c #005FCE", +" . . + + + + . . . @ # $ $ $ # # @ @ % ", +" . . + + + + . . . @ # $ $ $ # # @ @ % ", +" . . . + + + + . . . + # # # # & & & & # @ @ @ @ * ", +" + + . . + + . . . . . . . + = - @ @ # # # & & & & & & & & # # * * * * ", +" + + + . . . . . . . . . . ; = > , - @ # # # & & & & & & & & & & & & & * @ * ", +" + + + + . . . . . . . . . + ' ) ! ~ & & # & & & & & & & & & & & & & & & & @ @ @ * ", +" + + + + . . . . . . . . . + . { ] ^ / ( * * & & & & & & & & & & & & & & & & & & # @ & & * ", +" . . . . . . . . . . . . + + ; _ : < [ } @ & & & & & & & & & & & & & & & & & & & & & & & & & & ", +" + . . . . . . . . . . . . + . { | } 1 - & & & & & & & & & & & & & & & & & & & & & & & & & & & * ", +" + + + . . . . . . . . . . + ) + 2 3 - 4 5 & & & & & & & & & & & & & & & & & & & & & & & & & & & * % ", +" + + + . . . . . . . . . . + + ' 6 7 8 5 # & & & & & & & & & & & & & & & # & & & & & & & & & & & & & & @ @ ", +" + + . . . . . . . . . . ; ' . 9 0 & a & & & & & & & & & & & 5 b a 4 1 1 4 c 5 & & & & & & & & & & & @ @ ", +" ; + + . . . . . . . . . + ; ) d / e @ - & & & & & & & & & & & & f g a h , - & & & & & & & & & & & # @ ", +" + + . . . . . . . . . + + i j k l ( 5 & & & & & & & & & & f 5 * e m n o p q & & & & & & & & & & # # @ ", +"+ + . . . . . . . . . . . + r | s t * & & & & & & & & & * * 5 5 e ! u v ( & - & & & & & & & # # * ", +"+ + . . . . . . . . . + + { w x y c f & & & & & & & & & & * & e z A B A C B A q 5 & # & & & & & & & * * ", +"+ + + . . . . . . . . ; ; D ~ , 5 & & & & & & & & * & 5 & E F = ' = = ; = ; + p 5 & # & & & & & & & # @ ", +"+ + + . . . . . . . . ' = G 1 5 & & & & & & & & & & & & - e H 9 I = + + . . . . ' ; @ # & & & & & & & & # @ ", +"+ + + . . . . . . . . ) ' J 1 , & & & & & & & & & - , - K L r + + + . . . . . ' = M N ( & & & & & & & & * @ ", +"+ + . . . . . . . . . A } c 5 & & & & & & & & & & - t O P r ; . . . . . . . . = ; D Q q - & & & & & & & * * ", +". . . . . . . . . . . R e g 5 & & & & & & & & 5 & S T U 9 r + + . . . . . . . . ; ; V [ q 5 5 & & & & & & @ @ ", +". . . . . . . . . . . R e g 5 & & & & & & * & 5 e W . + . . . . . . . . . . ; ; L X ~ 5 5 & & & & & & # # ", +". . . . . . . . . . . A } a 5 & & & & & & & & ( H { = = ; . . . . . . . . . . = ; Y Z % f & & & & & & & # # ", +". . . . . . . . . . . ) ` 1 5 * & & & * f 5 ~ 9 + ; + + . . . . . . . . + + ' r ...@ * & & & & & & & & & & ", +". . . . . . . . . . . = ; 4 g , , , , 5 5 % +. j _ = ; . . . . . . . . . . ; ; > @.#.` 5 & * & & & & & & & & # ", +". . . . . . . . . . . ; + d $.%.4 1 4 - &.*.+ ; + . . . . . . . . . + ' ; =. -.E 5 & & & & & & & & & # K ", +". . . . . . . . . . . + + r ;.>.;.s =.,.; + + . . . . . . . . . + . > ! '.).K @ & & & & & & & & & # # ", +". . . + + . . . . . . . . . r !.2 ~.d _ . + + . . . . . . . . + ; ' I @. {.t - & & & & & & & & & & & @ ", +" + + + . . . . . . . . . + ; = ) C ' ; + . . . . . . . . . . . + + + ]. c & 5 & & & & & & & & & & & ", +" + + + . . . . . . . . . + ; = ' ) C C ) = ; + . . . . . . . . . . + = r ^./...- 4 5 & & & & & & & & & # # @ ", +" + + . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + + . 9 S # - & & & & & & & & & # @ @ ", +" + + . . . . . . . . . . . . . . . . . . . . . . . . . . . . ; = r ].U (.E & & & & & & & & & & & & # @ ", +" + + . . . . . . . . . . . . . . . . . . . . . . . . . . . ; ; _. e & & # & & & & & & & & & & # @ ", +" + + . . . . . . . . . . . . . . . . . . . . . . . . + . *.P :.<.K 5 5 - & & & & & & & & & & & @ ", +" + + . . . . . . . . . . . . . . . . . . . . . + + ; . [. }.e # & & & & & & & & & * * * * @ ", +" + . . . . . . . . . . . . . . . . . . . . . + + + |. $., & & & & & & & & & & * * * @ ", +" . . . . . . . . . . . . . . . . . . . . + ; . 1.c 5 & & & & & & & & & & * @ ", +" + + + . . . . . . . . . . . . . + + + + = # - & & & & & & & & & * * @ ", +" + . . . . + + . . . . . . + + + + - - & * & & & & # # # @ ", +" . . . + + . . . . . + + + & @ @ * & # # # # 2. "}; --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5-gui.manpages +++ likewise-open5-5.0.3991.1/debian/likewise-open5-gui.manpages @@ -0,0 +1 @@ +debian/domainjoin-gui.8 --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5-netlogon.netlogond.init +++ likewise-open5-5.0.3991.1/debian/likewise-open5-netlogon.netlogond.init @@ -0,0 +1,78 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: likewise-open-netlogond +# Required-Start: $network $local_fs $remote_fs +# Required-Stop: $network $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 1 +# Short-Description: Start Likewise Site Affinity Service +# Description: Start and Stop the Likewise Site Affinity Service +### END INIT INFO + +# Author: Thierry Carrez + +PATH=/usr/sbin:/usr/bin:/sbin:/bin +NAME=netlogond +DESC="Likewise Site Affinity Service" +DAEMON=/usr/sbin/$NAME +PIDFILE=/var/run/$NAME.pid +PROG_ARGS="--start-as-daemon" +PROG_ERR=/var/cache/likewise-open5/$NAME/$NAME.err + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +#[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +#[ -f /etc/default/rcS ] && . /etc/default/rcS + +#unset TMPDIR + +# Define LSB functions. +. /lib/lsb/init-functions + +case "$1" in + start) + log_daemon_msg "Starting $DESC" + if [ -f "$PROG_ERR" ]; then + rm -f "$PROG_ERR" + fi + # --quiet --oknodo are from our initscript + start-stop-daemon --start --oknodo --exec $DAEMON -- $PROG_ARGS + status=$? + sleep 1 # From likewise initscript + log_end_msg $status + ;; + + stop) + log_daemon_msg "Stopping $DESC" + start-stop-daemon --stop --quiet --exec $DAEMON --retry 5 + status=$? + log_end_msg $status + ;; + + status) + status_of_proc $DAEMON $NAME && exit 0 || exit $? + ;; + + restart|force-reload) + $0 stop && sleep 1 && $0 start + status=$? + ;; + + reload) + log_daemon_msg "Reloading $DESC" + start-stop-daemon --stop --signal HUP --pidfile $PIDFILE + status=$? + log_end_msg $status + ;; + + *) + echo "Usage: $0 {start|stop|status|restart|reload|force-reload}" + exit 1 + ;; + +esac +exit $status --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5.prerm +++ likewise-open5-5.0.3991.1/debian/likewise-open5.prerm @@ -0,0 +1,11 @@ +#!/bin/sh -e + +#DEBHELPER# + +case "$1" in + remove) + if [ -x /usr/bin/domainjoin-cli ]; then + domainjoin-cli leave || true + fi + ;; +esac --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5-netlogon.install +++ likewise-open5-5.0.3991.1/debian/likewise-open5-netlogon.install @@ -0,0 +1,9 @@ +etc/likewise-open5/netlogon.conf +usr/bin/lw-get-current-domain +usr/bin/lw-export-dc-cache +usr/bin/lw-get-dc-name +usr/bin/lw-get-dc-time +usr/lib/likewise-open5/liblwnetclientapi.so* +usr/lib/likewise-open5/liblwnetipc.so* +usr/lib/likewise-open5/liblwnetutils.so* +usr/sbin/netlogond --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5-lsass.postinst +++ likewise-open5-5.0.3991.1/debian/likewise-open5-lsass.postinst @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +pam-auth-update --package + +#DEBHELPER# --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5-libs.dirs +++ likewise-open5-5.0.3991.1/debian/likewise-open5-libs.dirs @@ -0,0 +1,2 @@ +var/log/likewise-open5 +var/lib/likewise-open5 --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5-lsass.prerm +++ likewise-open5-5.0.3991.1/debian/likewise-open5-lsass.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +if [ "$1" = remove ]; then + pam-auth-update --package --remove likewise-open5-lsass +fi + +#DEBHELPER# --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5-lsass.lsassd.init +++ likewise-open5-5.0.3991.1/debian/likewise-open5-lsass.lsassd.init @@ -0,0 +1,78 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: likewise-open-lsassd +# Required-Start: $network $local_fs $remote_fs +# Required-Stop: $network $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 1 +# Short-Description: Start Likewise Identity and Authentication Service +# Description: Start and Stop the Likewise Identity and Authentication Service +### END INIT INFO + +# Author: Thierry Carrez + +PATH=/usr/sbin:/usr/bin:/sbin:/bin +NAME=lsassd +DESC="Likewise Identity and Authentication Service" +DAEMON=/usr/sbin/$NAME +PIDFILE=/var/run/$NAME.pid +PROG_ARGS="--start-as-daemon" +PROG_ERR=/var/lib/likewise-open5/$NAME/$NAME.err + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +#[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +#[ -f /etc/default/rcS ] && . /etc/default/rcS + +#unset TMPDIR + +# Define LSB functions. +. /lib/lsb/init-functions + +case "$1" in + start) + log_daemon_msg "Starting $DESC" + if [ -f "$PROG_ERR" ]; then + rm -f "$PROG_ERR" + fi + # --quiet --oknodo are from our initscript + start-stop-daemon --start --oknodo --exec $DAEMON -- $PROG_ARGS + status=$? + sleep 1 # From likewise initscript + log_end_msg $status + ;; + + stop) + log_daemon_msg "Stopping $DESC" + start-stop-daemon --stop --oknodo --quiet --exec $DAEMON --retry 5 + status=$? + log_end_msg $status + ;; + + status) + status_of_proc $DAEMON $NAME && exit 0 || exit $? + ;; + + restart|force-reload) + $0 stop && sleep 1 && $0 start + status=$? + ;; + + reload) + log_daemon_msg "Reloading $DESC" + start-stop-daemon --stop --signal HUP --pidfile $PIDFILE + status=$? + log_end_msg $status + ;; + + *) + echo "Usage: $0 {start|stop|status|restart|reload|force-reload}" + exit 1 + ;; + +esac +exit $status --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5-gui.install +++ likewise-open5-5.0.3991.1/debian/likewise-open5-gui.install @@ -0,0 +1,10 @@ +usr/bin/domainjoin-gui + +usr/share/icons/likewise-gui.xpm +usr/share/applications/likewise-open-gui.desktop +usr/share/applications/likewise-open-gui-kde.desktop + +usr/share/likewise-open5/domainjoin-logo.png +usr/share/likewise-open5/likewise-logo.png +usr/share/likewise-open5/domainjoin-gtk.glade + --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5.NEWS +++ likewise-open5-5.0.3991.1/debian/likewise-open5.NEWS @@ -0,0 +1,9 @@ +likewise-open5 (5.0.3991.1-0ubuntu1) jaunty; urgency=low + + Likewise-Open 5 is proposed as a packageset (likewise-open5) separate from + the Likewise-Open 4.1 one (likewise-open), because there is currently no + way of upgrading the package without losing domain membership. + However, if you install likewise-open5, it will replace your existing + likewise-open (4.1) install and you'll have to manually rejoin the domain. + + -- Thierry Carrez Mon, 06 Apr 2009 11:16:12 +0200 --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5-eventlog.eventlogd.init +++ likewise-open5-5.0.3991.1/debian/likewise-open5-eventlog.eventlogd.init @@ -0,0 +1,78 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: likewise-open-evenlogd +# Required-Start: $network $local_fs $remote_fs +# Required-Stop: $network $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 1 +# Short-Description: Start Likewise Event Log Service +# Description: Start and Stop the Likewise Event Log Service +### END INIT INFO + +# Author: Thierry Carrez + +PATH=/usr/sbin:/usr/bin:/sbin:/bin +NAME=eventlogd +DESC="Likewise Event Log Service" +DAEMON=/usr/sbin/$NAME +PIDFILE=/var/run/likewise-$NAME.pid +PROG_ARGS="--start-as-daemon" +PROG_ERR=/var/cache/likewise-open5/$NAME/$NAME.err + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +#[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +#[ -f /etc/default/rcS ] && . /etc/default/rcS + +#unset TMPDIR + +# Define LSB functions. +. /lib/lsb/init-functions + +case "$1" in + start) + log_daemon_msg "Starting $DESC" + if [ -f "$PROG_ERR" ]; then + rm -f "$PROG_ERR" + fi + # --quiet --oknodo are from our initscript + start-stop-daemon --start --oknodo --exec $DAEMON -- $PROG_ARGS + status=$? + sleep 1 # From likewise initscript + log_end_msg $status + ;; + + stop) + log_daemon_msg "Stopping $DESC" + start-stop-daemon --stop --quiet --exec $DAEMON --retry 5 + status=$? + log_end_msg $status + ;; + + status) + status_of_proc $DAEMON $NAME && exit 0 || exit $? + ;; + + restart|force-reload) + $0 stop && sleep 1 && $0 start + status=$? + ;; + + reload) + log_daemon_msg "Reloading $DESC" + start-stop-daemon --stop --signal HUP --pidfile $PIDFILE + status=$? + log_end_msg $status + ;; + + *) + echo "Usage: $0 {start|stop|status|restart|reload|force-reload}" + exit 1 + ;; + +esac +exit $status --- likewise-open5-5.0.3991.1.orig/debian/likewise-open5.manpages +++ likewise-open5-5.0.3991.1/debian/likewise-open5.manpages @@ -0,0 +1,2 @@ +debian/domainjoin-cli.8 +debian/likewise-open.7 --- likewise-open5-5.0.3991.1.orig/debian/patches/ask-for-reboot.diff +++ likewise-open5-5.0.3991.1/debian/patches/ask-for-reboot.diff @@ -0,0 +1,36 @@ +Index: likewise-open5-5.0.3991.1/domainjoin/domainjoin-cli/src/main.c +=================================================================== +--- likewise-open5-5.0.3991.1.orig/domainjoin/domainjoin-cli/src/main.c 2009-04-06 10:51:24.000000000 +0200 ++++ likewise-open5-5.0.3991.1/domainjoin/domainjoin-cli/src/main.c 2009-04-06 11:04:12.000000000 +0200 +@@ -448,6 +448,7 @@ + + LW_TRY(exc, DJRunJoinProcess(&options, &LW_EXC)); + fprintf(stdout, "SUCCESS\n"); ++ fprintf(stdout, "You should reboot this system before attempting GUI logins as a domain user.\n"); + + cleanup: + DJFreeJoinProcessOptions(&options); +Index: likewise-open5-5.0.3991.1/domainjoin/scripts/ConfigureLogin.in +=================================================================== +--- likewise-open5-5.0.3991.1.orig/domainjoin/scripts/ConfigureLogin.in 2009-04-06 10:52:24.000000000 +0200 ++++ likewise-open5-5.0.3991.1/domainjoin/scripts/ConfigureLogin.in 2009-04-06 11:14:42.000000000 +0200 +@@ -296,8 +296,19 @@ + fi + fi + else ++ if [ "$distroType" = "Ubuntu" ]; then ++ # Restarting DBUS is a bad idea. Let's ask for a reboot instead ++ if [ -x /usr/share/update-notifier/notify-reboot-required ]; then ++ /usr/share/update-notifier/notify-reboot-required ++ touch /var/lib/update-notifier/dpkg-run-stamp ++ result=$? ++ else ++ return 0 ++ fi ++ else + /etc/init.d/dbus restart + result=$? ++ fi + fi + WaitForNetworkManager + return $result --- likewise-open5-5.0.3991.1.orig/debian/patches/daemon_restart.diff +++ likewise-open5-5.0.3991.1/debian/patches/daemon_restart.diff @@ -0,0 +1,13 @@ +Index: likewise-open-5.0.3991/domainjoin/libdomainjoin/src/djdaemonmgr_nonmac.c +=================================================================== +--- likewise-open-5.0.3991.orig/domainjoin/libdomainjoin/src/djdaemonmgr_nonmac.c 2009-03-10 13:28:19.000000000 +0000 ++++ likewise-open-5.0.3991/domainjoin/libdomainjoin/src/djdaemonmgr_nonmac.c 2009-03-10 13:29:27.000000000 +0000 +@@ -775,8 +775,6 @@ + + } + +- LW_TRY(exc, DJConfigureForDaemonRestart(pszName, bStatus, startPriority, stopPriority, &LW_EXC)); +- + cleanup: + ; + } --- likewise-open5-5.0.3991.1.orig/debian/patches/eventlog.diff +++ likewise-open5-5.0.3991.1/debian/patches/eventlog.diff @@ -0,0 +1,370 @@ +Index: likewise-open-5.0.3991/eventlog/server/db.c +=================================================================== +--- likewise-open-5.0.3991.orig/eventlog/server/db.c 2009-03-05 12:31:10.000000000 -0800 ++++ likewise-open-5.0.3991/eventlog/server/db.c 2009-03-05 12:31:15.000000000 -0800 +@@ -118,18 +118,18 @@ + Computer, \ + Description, \ + Data \ +- ) \ +- VALUES( NULL, \ +- \"%s\", \ +- \"%s\", \ +- %d, \ +- \"%s\", \ +- \"%s\", \ +- %d, \ +- \"%s\", \ +- \"%s\", \ +- \"%s\", \ +- \"%s\")" ++ ) \ ++ VALUES( NULL, \ ++ %Q, \ ++ %Q, \ ++ %d, \ ++ %Q, \ ++ %Q, \ ++ %d, \ ++ %Q, \ ++ %Q, \ ++ %Q, \ ++ %Q)" + + //Delete the record over 'n' entries + #define DB_QUERY_DELETE_ABOVE_LIMIT "DELETE FROM lwievents \ +@@ -160,6 +160,12 @@ + EVENT_LOG_RECORD** + ); + ++static ++DWORD ++SrvCheckSqlFilter( ++ PSTR pszFilter ++ ); ++ + //public interface + + DWORD +@@ -229,6 +235,83 @@ + return dwError; + } + ++static ++DWORD ++SrvCheckSqlFilter( ++ PSTR pszFilter ++ ) ++{ ++ enum { ++ COMMAND, ++ SINGLE_QUOTE, ++ DOUBLE_QUOTE, ++ BACK_QUOTE, ++ } mode = COMMAND; ++ DWORD dwError = 0; ++ DWORD dwIndex = 0; ++ ++ while (pszFilter[dwIndex]) ++ { ++ switch(mode) ++ { ++ case COMMAND: ++ switch (pszFilter[dwIndex]) ++ { ++ case ';': ++ dwError = EINVAL; ++ BAIL_ON_EVT_ERROR(dwError); ++ break; ++ case '\'': ++ mode = SINGLE_QUOTE; ++ break; ++ case '\"': ++ mode = DOUBLE_QUOTE; ++ break; ++ case '`': ++ mode = BACK_QUOTE; ++ break; ++ } ++ break; ++ case SINGLE_QUOTE: ++ switch (pszFilter[dwIndex]) ++ { ++ case '\'': ++ mode = COMMAND; ++ break; ++ } ++ break; ++ case DOUBLE_QUOTE: ++ switch (pszFilter[dwIndex]) ++ { ++ case '\"': ++ mode = COMMAND; ++ break; ++ } ++ break; ++ case BACK_QUOTE: ++ switch (pszFilter[dwIndex]) ++ { ++ case '`': ++ mode = COMMAND; ++ break; ++ } ++ break; ++ } ++ dwIndex++; ++ } ++ ++ if (mode != COMMAND) ++ { ++ dwError = EINVAL; ++ BAIL_ON_EVT_ERROR(dwError); ++ } ++ ++cleanup: ++ return dwError; ++ ++error: ++ goto cleanup; ++} + + DWORD + SrvEventLogCount( +@@ -239,37 +322,60 @@ + { + + DWORD dwError = 0; +- CHAR szQuery[8092]; ++ PSTR pszQuery = NULL; + DWORD nRows = 0; + DWORD nCols = 0; + PSTR* ppszResult = NULL; + ENTER_RW_READER_LOCK; + + if (sqlFilter == NULL) { +- sprintf(szQuery, DB_QUERY_COUNT_ALL); ++ dwError = EVTAllocateStringPrintf( ++ &pszQuery, ++ DB_QUERY_COUNT_ALL); ++ BAIL_ON_EVT_ERROR(dwError); + } + else { +- sprintf(szQuery, DB_QUERY_COUNT, sqlFilter); ++ dwError = SrvCheckSqlFilter(sqlFilter); ++ BAIL_ON_EVT_ERROR(dwError); ++ ++ dwError = EVTAllocateStringPrintf( ++ &pszQuery, ++ DB_QUERY_COUNT, ++ sqlFilter); ++ BAIL_ON_EVT_ERROR(dwError); + } + +- dwError = SrvQueryEventLog(hDB, szQuery, &nRows, &nCols, &ppszResult); ++ dwError = SrvQueryEventLog( ++ hDB, ++ pszQuery, ++ &nRows, ++ &nCols, ++ &ppszResult); ++ BAIL_ON_EVT_ERROR(dwError); + +- if (nRows == 1) { ++ if (nRows == 1) ++ { + *pdwNumMatched = (DWORD) atoi(ppszResult[1]); +- BAIL_ON_EVT_ERROR(dwError); +- } else { ++ } ++ else ++ { + EVT_LOG_VERBOSE("Could not find count of event logs in database"); ++ dwError = EINVAL; ++ BAIL_ON_EVT_ERROR(dwError); + } + + cleanup: + if (ppszResult) { + sqlite3_free_table(ppszResult); + } ++ EVT_SAFE_FREE_STRING(pszQuery); ++ + LEAVE_RW_READER_LOCK; + return dwError; ++ + error: ++ *pdwNumMatched = 0; + goto cleanup; +- + } + + DWORD +@@ -284,20 +390,36 @@ + { + + DWORD dwError = 0; +- CHAR szQuery[8092]; ++ PSTR pszQuery = NULL; + DWORD nRows = 0; + DWORD nCols = 0; + PSTR* ppszResult = NULL; + ENTER_RW_READER_LOCK; + + if (IsNullOrEmptyString(sqlFilter)) { +- sprintf(szQuery, DB_QUERY_ALL_WITH_LIMIT, (ULONG)nRecordsPerPage, (ULONG)dwStartingRowId); ++ dwError = EVTAllocateStringPrintf( ++ &pszQuery, ++ DB_QUERY_ALL_WITH_LIMIT, ++ (ULONG)nRecordsPerPage, ++ (ULONG)dwStartingRowId); ++ BAIL_ON_EVT_ERROR(dwError); + } +- else { +- sprintf(szQuery, DB_QUERY_WITH_LIMIT, sqlFilter, (ULONG)nRecordsPerPage, (ULONG)dwStartingRowId); ++ else ++ { ++ dwError = SrvCheckSqlFilter(sqlFilter); ++ BAIL_ON_EVT_ERROR(dwError); ++ ++ dwError = EVTAllocateStringPrintf( ++ &pszQuery, ++ DB_QUERY_WITH_LIMIT, ++ sqlFilter, ++ (ULONG)nRecordsPerPage, ++ (ULONG)dwStartingRowId); ++ BAIL_ON_EVT_ERROR(dwError); + } + +- dwError = SrvQueryEventLog(hDB, szQuery, &nRows, &nCols, &ppszResult); ++ dwError = SrvQueryEventLog(hDB, pszQuery, &nRows, &nCols, &ppszResult); ++ BAIL_ON_EVT_ERROR(dwError); + + if (nRows > 0) { + +@@ -319,9 +441,12 @@ + if (ppszResult) { + sqlite3_free_table(ppszResult); + } ++ EVT_SAFE_FREE_STRING(pszQuery); + LEAVE_RW_READER_LOCK; + return dwError; + error: ++ *pdwNumReturned = 0; ++ *eventRecords = NULL; + goto cleanup; + + } +@@ -345,8 +470,7 @@ + + ENTER_RW_WRITER_LOCK; + +- dwError = EVTAllocateStringPrintf( +- &pszQuery, ++ pszQuery = sqlite3_mprintf( + DB_QUERY_INSERT_EVENT, + IsNullOrEmptyString(pEventRecord->pszEventTableCategoryId) ? "" : pEventRecord->pszEventTableCategoryId, + IsNullOrEmptyString(pEventRecord->pszEventType) ? "" : pEventRecord->pszEventType, +@@ -358,7 +482,11 @@ + IsNullOrEmptyString(pEventRecord->pszComputer) ? "" : pEventRecord->pszComputer, + IsNullOrEmptyString(pEventRecord->pszDescription) ? "" : pEventRecord->pszDescription, + IsNullOrEmptyString(pEventRecord->pszData) ? "" : pEventRecord->pszData); +- BAIL_ON_EVT_ERROR(dwError); ++ if (!pszQuery) ++ { ++ dwError = ENOMEM; ++ BAIL_ON_EVT_ERROR(dwError); ++ } + + dwError = SrvQueryEventLog(hDB, pszQuery, &nRows, &nCols, &ppszResult); + BAIL_ON_EVT_ERROR(dwError); +@@ -368,7 +496,7 @@ + cleanup: + + if (pszQuery){ +- EVTFreeString(pszQuery); ++ sqlite3_free(pszQuery); + } + + if (ppszResult) { +@@ -547,26 +675,34 @@ + PSTR sqlFilter + ) + { +- if (sqlFilter == NULL) { +- return 0; +- } +- + DWORD dwError = 0; +- CHAR szQuery[8092]; ++ PSTR pszQuery = NULL; + DWORD nRows = 0; + DWORD nCols = 0; + PSTR* ppszResult = NULL; + ENTER_RW_WRITER_LOCK; + +- sprintf(szQuery, DB_QUERY_DELETE, sqlFilter); ++ if (sqlFilter == NULL) { ++ goto cleanup; ++ } + +- dwError = SrvQueryEventLog(hDB, szQuery, &nRows, &nCols, &ppszResult); ++ dwError = SrvCheckSqlFilter(sqlFilter); ++ BAIL_ON_EVT_ERROR(dwError); ++ ++ dwError = EVTAllocateStringPrintf( ++ &pszQuery, ++ DB_QUERY_DELETE, ++ sqlFilter); ++ BAIL_ON_EVT_ERROR(dwError); ++ ++ dwError = SrvQueryEventLog(hDB, pszQuery, &nRows, &nCols, &ppszResult); + BAIL_ON_EVT_ERROR(dwError); + + cleanup: + if (ppszResult) { + sqlite3_free_table(ppszResult); + } ++ EVT_SAFE_FREE_STRING(pszQuery); + LEAVE_RW_WRITER_LOCK; + return dwError; + error: +Index: likewise-open-5.0.3991/eventlog/server/server.c +=================================================================== +--- likewise-open-5.0.3991.orig/eventlog/server/server.c 2009-03-05 12:31:10.000000000 -0800 ++++ likewise-open-5.0.3991/eventlog/server/server.c 2009-03-05 12:31:15.000000000 -0800 +@@ -116,6 +116,17 @@ + { + DWORD dwError = 0; + HANDLE hDB = (HANDLE)NULL; ++ PEVTALLOWEDDATA pAllowAccessTo = NULL; ++ ++ dwError = EVTGetAllowReadToLocked( &pAllowAccessTo ); ++ BAIL_ON_EVT_ERROR(dwError); ++ ++ dwError = LWICheckSecurity( ++ bindingHandle, ++ pAllowAccessTo); ++ ++ EVTUnlockServerInfo(); ++ BAIL_ON_EVT_ERROR(dwError); + + dwError = SrvOpenEventDatabase(&hDB); + BAIL_ON_EVT_ERROR(dwError); +@@ -151,6 +162,17 @@ + { + DWORD dwError = 0; + HANDLE hDB = (HANDLE)NULL; ++ PEVTALLOWEDDATA pAllowAccessTo = NULL; ++ ++ dwError = EVTGetAllowReadToLocked( &pAllowAccessTo ); ++ BAIL_ON_EVT_ERROR(dwError); ++ ++ dwError = LWICheckSecurity( ++ bindingHandle, ++ pAllowAccessTo); ++ ++ EVTUnlockServerInfo(); ++ BAIL_ON_EVT_ERROR(dwError); + + dwError = SrvOpenEventDatabase(&hDB); + BAIL_ON_EVT_ERROR(dwError); --- likewise-open5-5.0.3991.1.orig/debian/patches/pam-auth-update.diff +++ likewise-open5-5.0.3991.1/debian/patches/pam-auth-update.diff @@ -0,0 +1,20 @@ +Index: likewise-open-5.0.3991/domainjoin/libdomainjoin/src/djmodule.c +=================================================================== +--- likewise-open-5.0.3991.orig/domainjoin/libdomainjoin/src/djmodule.c 2009-03-09 13:36:29.000000000 +0000 ++++ likewise-open-5.0.3991/domainjoin/libdomainjoin/src/djmodule.c 2009-03-10 09:00:10.000000000 +0000 +@@ -61,7 +61,6 @@ + &DJBashPrompt, + &DJGdmPresession, + &DJPamMode, +- &DJPamModule, + &DJLamAuth, + &DJSshModule, + &DJDSPlugin, +@@ -72,7 +71,6 @@ + &DJDSPlugin, + &DJSshModule, + &DJLamAuth, +- &DJPamModule, + &DJPamMode, + &DJGdmPresession, + &DJBashPrompt, --- likewise-open5-5.0.3991.1.orig/debian/patches/build-sh.diff +++ likewise-open5-5.0.3991.1/debian/patches/build-sh.diff @@ -0,0 +1,13 @@ +--- likewise-open-5.0.3991.orig/Build.sh ++++ likewise-open-5.0.3991/Build.sh +@@ -1,10 +1,8 @@ + #!/bin/bash + + COMPONENTS="\ +- krb5 \ + openldap \ + centutils \ +- sqlite \ + libunistr \ + pstore \ + netlogon \ --- likewise-open5-5.0.3991.1.orig/debian/patches/version-in-share.diff +++ likewise-open5-5.0.3991.1/debian/patches/version-in-share.diff @@ -0,0 +1,13 @@ +Index: likewise-open-5.0.3991/domainjoin/libdomainjoin/src/djdistroinfo.c +=================================================================== +--- likewise-open-5.0.3991.orig/domainjoin/libdomainjoin/src/djdistroinfo.c 2009-03-09 07:41:46.000000000 +0000 ++++ likewise-open-5.0.3991/domainjoin/libdomainjoin/src/djdistroinfo.c 2009-03-09 07:42:50.000000000 +0000 +@@ -622,7 +622,7 @@ + *build = NULL; + *revision = NULL; + +- GCE(ceError = CTOpenFile(PREFIXDIR "/data/VERSION", "r", &versionFile)); ++ GCE(ceError = CTOpenFile("/usr/share/likewise-open5/VERSION", "r", &versionFile)); + + while (TRUE) + { --- likewise-open5-5.0.3991.1.orig/debian/patches/series +++ likewise-open5-5.0.3991.1/debian/patches/series @@ -0,0 +1,8 @@ +daemon_restart.diff +build-sh.diff +eventlog.diff +version-in-share.diff +pam-auth-update.diff +likewise-open5-path.diff +abstractions-cleanup.diff +ask-for-reboot.diff --- likewise-open5-5.0.3991.1.orig/debian/patches/likewise-open5-path.diff +++ likewise-open5-5.0.3991.1/debian/patches/likewise-open5-path.diff @@ -0,0 +1,238 @@ +Index: likewise-open5-5.0.3991/domainjoin/domainjoin-gui/gtk/common.c +=================================================================== +--- likewise-open5-5.0.3991.orig/domainjoin/domainjoin-gui/gtk/common.c 2009-03-12 10:00:36.000000000 +0000 ++++ likewise-open5-5.0.3991/domainjoin/domainjoin-gui/gtk/common.c 2009-03-12 10:02:52.000000000 +0000 +@@ -33,7 +33,7 @@ + void + dialog_insert_likewise_logo(GtkDialog* dialog) + { +- GtkWidget* image = gtk_image_new_from_file (DATADIR "/likewise/likewise-logo.png"); ++ GtkWidget* image = gtk_image_new_from_file (DATADIR "/likewise-open5/likewise-logo.png"); + + gtk_box_pack_start(GTK_BOX(dialog->action_area), image, FALSE, FALSE, 0); + gtk_button_box_set_child_secondary(GTK_BUTTON_BOX(dialog->action_area), image, TRUE); +Index: likewise-open5-5.0.3991/domainjoin/domainjoin-gui/gtk/common.h +=================================================================== +--- likewise-open5-5.0.3991.orig/domainjoin/domainjoin-gui/gtk/common.h 2009-03-12 10:00:36.000000000 +0000 ++++ likewise-open5-5.0.3991/domainjoin/domainjoin-gui/gtk/common.h 2009-03-12 10:02:52.000000000 +0000 +@@ -34,7 +34,7 @@ + #include + #include + +-#define DOMAINJOIN_XML (DATADIR "/likewise/domainjoin-gtk.glade") ++#define DOMAINJOIN_XML (DATADIR "/likewise-open5/domainjoin-gtk.glade") + + void dialog_insert_likewise_logo(GtkDialog* dialog); + +Index: likewise-open5-5.0.3991/domainjoin/libdomainjoin/src/djauthinfo.c +=================================================================== +--- likewise-open5-5.0.3991.orig/domainjoin/libdomainjoin/src/djauthinfo.c 2009-03-12 10:00:37.000000000 +0000 ++++ likewise-open5-5.0.3991/domainjoin/libdomainjoin/src/djauthinfo.c 2009-03-12 10:02:52.000000000 +0000 +@@ -195,7 +195,7 @@ + "/var/lib/lwidentity/netsamlogon_cache.tdb", + "/var/lib/lwidentity/winbindd_cache.tdb", + /* Likewise 5.0 cache location files... */ +- LOCALSTATEDIR "/lib/likewise/db/lsass-adcache.db", ++ LOCALSTATEDIR "/db/lsass-adcache.db", + NULL + }; + int i; +@@ -219,7 +219,7 @@ + + /* Likewise 5.0 (Mac Workgroup Manager) cache files... */ + +- cachePath = LOCALSTATEDIR "/lib/likewise/grouppolicy/mcx"; ++ cachePath = LOCALSTATEDIR "/grouppolicy/mcx"; + ceError = CTCheckDirectoryExists(cachePath, &bDirExists); + BAIL_ON_CENTERIS_ERROR(ceError); + +@@ -232,7 +232,7 @@ + + /* Likewise 5.0 (group policy scratch) files... */ + +- cachePath = LOCALSTATEDIR "/lib/likewise/grouppolicy/scratch"; ++ cachePath = LOCALSTATEDIR "/grouppolicy/scratch"; + ceError = CTCheckDirectoryExists(cachePath, &bDirExists); + BAIL_ON_CENTERIS_ERROR(ceError); + +@@ -243,10 +243,10 @@ + BAIL_ON_CENTERIS_ERROR(ceError); + } + +- cachePath = LOCALSTATEDIR "/lib/likewise/grouppolicy/{*}*"; ++ cachePath = LOCALSTATEDIR "/grouppolicy/{*}*"; + (void) CTRemoveFiles(cachePath, FALSE, TRUE); + +- cachePath = LOCALSTATEDIR "/lib/likewise/grouppolicy/user-cache"; ++ cachePath = LOCALSTATEDIR "/grouppolicy/user-cache"; + (void) CTRemoveFiles(cachePath, FALSE, TRUE); + + error: +Index: likewise-open5-5.0.3991/domainjoin/libdomainjoin/src/djnsswitch.c +=================================================================== +--- likewise-open5-5.0.3991.orig/domainjoin/libdomainjoin/src/djnsswitch.c 2009-03-12 10:00:37.000000000 +0000 ++++ likewise-open5-5.0.3991/domainjoin/libdomainjoin/src/djnsswitch.c 2009-03-12 10:02:52.000000000 +0000 +@@ -1047,14 +1047,14 @@ + PREFIXDIR "/lib/*.so* mr,\n" + PREFIXDIR "/lib64/*.so* mr,\n" + "/tmp/.lwidentity/pipe rw,\n" +-LOCALSTATEDIR "/lib/likewise/.lsasd rw,\n" ++LOCALSTATEDIR "/.lsasd rw,\n" + LOCALSTATEDIR "/tmp/.lsaclient_* rw,\n"; + else + addString = + PREFIXDIR "/lib/*.so* r,\n" + PREFIXDIR "/lib64/*.so* r,\n" + "/tmp/.lwidentity/pipe rw,\n" +-LOCALSTATEDIR "/lib/likewise/.lsasd rw,\n" ++LOCALSTATEDIR "/.lsasd rw,\n" + LOCALSTATEDIR "/tmp/.lsaclient_* rw,\n"; + + +Index: likewise-open5-5.0.3991/eventlog/configure.in +=================================================================== +--- likewise-open5-5.0.3991.orig/eventlog/configure.in 2009-03-12 10:00:37.000000000 +0000 ++++ likewise-open5-5.0.3991/eventlog/configure.in 2009-03-12 10:02:52.000000000 +0000 +@@ -240,7 +240,7 @@ + AC_SUBST(eventlogconfdir) + AS_AC_EXPAND(CONFIGDIR, $eventlogconfdir) + AC_DEFINE_UNQUOTED(CONFIGDIR, "$CONFIGDIR", [Config directory]) +-eventlogcachedir="$localstatedir/lib/likewise" ++eventlogcachedir="$localstatedir" + AC_SUBST(eventlogcachedir) + AS_AC_EXPAND(CACHEDIR, $eventlogcachedir) + AC_DEFINE_UNQUOTED(CACHEDIR, "$CACHEDIR", [Cache directory]) +Index: likewise-open5-5.0.3991/lsass/configure.in +=================================================================== +--- likewise-open5-5.0.3991.orig/lsass/configure.in 2009-03-12 10:00:37.000000000 +0000 ++++ likewise-open5-5.0.3991/lsass/configure.in 2009-03-12 10:02:52.000000000 +0000 +@@ -431,7 +431,7 @@ + AS_AC_EXPAND(CONFIGDIR, $lsassconfdir) + AC_DEFINE_UNQUOTED(CONFIGDIR, "$CONFIGDIR", [Config directory]) + +-lsasscachedir="$localstatedir/lib/likewise" ++lsasscachedir="$localstatedir" + AC_SUBST(lsasscachedir) + AS_AC_EXPAND(CACHEDIR, $lsasscachedir) + AC_DEFINE_UNQUOTED(CACHEDIR, "$CACHEDIR", [Cache directory]) +Index: likewise-open5-5.0.3991/lwdns/configure.in +=================================================================== +--- likewise-open5-5.0.3991.orig/lwdns/configure.in 2009-03-12 10:00:36.000000000 +0000 ++++ likewise-open5-5.0.3991/lwdns/configure.in 2009-03-12 10:02:52.000000000 +0000 +@@ -109,7 +109,7 @@ + AS_AC_EXPAND(dnsconfdir, ["$sysconfdir"]) + AC_DEFINE_UNQUOTED([LWPS_CONFIG_DIR], ["$dnsconfdir"], [Location of pstore configuration files]) + +-AS_AC_EXPAND(dnscachedir, ["$localstatedir/lib/likewise"]) ++AS_AC_EXPAND(dnscachedir, ["$localstatedir"]) + AC_DEFINE_UNQUOTED([LWPS_CACHE_DIR], ["$dnscachedir"], [Location of pstore cache files]) + + AS_AC_EXPAND(providerdir, $libdir) +Index: likewise-open5-5.0.3991/Makefile +=================================================================== +--- likewise-open5-5.0.3991.orig/Makefile 2009-03-12 10:00:36.000000000 +0000 ++++ likewise-open5-5.0.3991/Makefile 2009-03-12 10:02:52.000000000 +0000 +@@ -41,6 +41,7 @@ + -@for d in $(DIRS); do \ + test -f $$d/Makefile && make -C $$d clean; \ + done ++ -@/bin/rm -rf build-install* + + dpkg: dist + sh packaging/scripts/build-dpkg +Index: likewise-open5-5.0.3991/netlogon/client/krb5env.c +=================================================================== +--- likewise-open5-5.0.3991.orig/netlogon/client/krb5env.c 2009-03-12 10:00:37.000000000 +0000 ++++ likewise-open5-5.0.3991/netlogon/client/krb5env.c 2009-03-12 10:02:52.000000000 +0000 +@@ -47,7 +47,7 @@ + #include "includes.h" + + #define LWNET_KRB5_CONFIG_VARIABLE_NAME "KRB5_CONFIG" +-#define LWNET_KRB5_BASE_CONF_PATH "/etc/likewise/likewise-krb5-ad.conf" ++#define LWNET_KRB5_BASE_CONF_PATH LWNET_CONFIG_DIR "/likewise-krb5-ad.conf" + + #define LWNET_KRB5_ENV_PREFIX \ + LWNET_KRB5_CONF_PATH ":" LWNET_KRB5_BASE_CONF_PATH +Index: likewise-open5-5.0.3991/netlogon/configure.in +=================================================================== +--- likewise-open5-5.0.3991.orig/netlogon/configure.in 2009-03-12 10:00:37.000000000 +0000 ++++ likewise-open5-5.0.3991/netlogon/configure.in 2009-03-12 10:02:52.000000000 +0000 +@@ -181,7 +181,7 @@ + AS_AC_EXPAND(netlogonconfdir, ["$sysconfdir"]) + AC_DEFINE_UNQUOTED([LWNET_CONFIG_DIR], ["$netlogonconfdir"], [Location of netlogon configuration files]) + +-AS_AC_EXPAND(netlogoncachedir, ["$localstatedir/lib/likewise"]) ++AS_AC_EXPAND(netlogoncachedir, ["$localstatedir"]) + AC_DEFINE_UNQUOTED([LWNET_CACHE_DIR], ["$netlogoncachedir"], [Location of netlogon cache files]) + + # Checks for programs. +Index: likewise-open5-5.0.3991/netlogon/include/lwnet-def.h +=================================================================== +--- likewise-open5-5.0.3991.orig/netlogon/include/lwnet-def.h 2009-03-12 10:00:37.000000000 +0000 ++++ likewise-open5-5.0.3991/netlogon/include/lwnet-def.h 2009-03-12 10:02:52.000000000 +0000 +@@ -56,6 +56,11 @@ + + #ifndef WIN32 + ++#define LWNET_KRB5_CONF_DIRNAME LWNET_CACHE_DIR ++#define LWNET_KRB5_CONF_BASENAME "krb5-affinity.conf" ++#define LWNET_KRB5_CONF_PATH LWNET_KRB5_CONF_DIRNAME "/" LWNET_KRB5_CONF_BASENAME ++#define LWNET_KRB5_CONF_PATH_TEMP LWNET_KRB5_CONF_PATH ".temp" ++ + #define BAIL_ON_LWNET_ERROR(dwError) \ + if (dwError) { \ + LWNET_LOG_DEBUG("Error at %s:%d [code: %d]", __FILE__, __LINE__, dwError); \ +Index: likewise-open5-5.0.3991/netlogon/include/lwnet.h +=================================================================== +--- likewise-open5-5.0.3991.orig/netlogon/include/lwnet.h 2009-03-12 10:00:37.000000000 +0000 ++++ likewise-open5-5.0.3991/netlogon/include/lwnet.h 2009-03-12 10:02:52.000000000 +0000 +@@ -312,10 +312,6 @@ + #define LWNET_ERROR_PREFIX 0xA000 // 40960 + #define LWNET_ERROR_MASK(_e_) (_e_ & LWNET_ERROR_PREFIX) + +-#define LWNET_KRB5_CONF_DIRNAME "/var/lib/likewise" +-#define LWNET_KRB5_CONF_BASENAME "krb5-affinity.conf" +-#define LWNET_KRB5_CONF_PATH LWNET_KRB5_CONF_DIRNAME "/" LWNET_KRB5_CONF_BASENAME +- + #define LWNET_API + + //Standard GUID's are 16 bytes long. +Index: likewise-open5-5.0.3991/netlogon/server/api/lwnet-krb5.c +=================================================================== +--- likewise-open5-5.0.3991.orig/netlogon/server/api/lwnet-krb5.c 2009-03-12 10:00:37.000000000 +0000 ++++ likewise-open5-5.0.3991/netlogon/server/api/lwnet-krb5.c 2009-03-12 10:02:52.000000000 +0000 +@@ -46,8 +46,6 @@ + */ + #include "includes.h" + +-#define LWNET_KRB5_CONF_PATH_TEMP LWNET_KRB5_CONF_PATH ".temp" +- + static + PCSTR + LWNetKrb5SelectAddress( +Index: likewise-open5-5.0.3991/pstore/configure.in +=================================================================== +--- likewise-open5-5.0.3991.orig/pstore/configure.in 2009-03-12 10:00:36.000000000 +0000 ++++ likewise-open5-5.0.3991/pstore/configure.in 2009-03-12 10:02:52.000000000 +0000 +@@ -130,7 +130,7 @@ + AS_AC_EXPAND(pstoreconfdir, ["$sysconfdir"]) + AC_DEFINE_UNQUOTED([LWPS_CONFIG_DIR], ["$pstoreconfdir"], [Location of pstore configuration files]) + +-AS_AC_EXPAND(pstorecachedir, ["$localstatedir/lib/likewise"]) ++AS_AC_EXPAND(pstorecachedir, ["$localstatedir"]) + AC_DEFINE_UNQUOTED([LWPS_CACHE_DIR], ["$pstorecachedir"], [Location of pstore cache files]) + + AS_AC_EXPAND(providerdir, $libdir) +Index: likewise-open5-5.0.3991/lsass/server/krb5/lsakrb5.c +=================================================================== +--- likewise-open5-5.0.3991.orig/lsass/server/krb5/lsakrb5.c 2009-03-12 10:03:01.000000000 +0000 ++++ likewise-open5-5.0.3991/lsass/server/krb5/lsakrb5.c 2009-03-12 10:03:47.000000000 +0000 +@@ -146,7 +146,7 @@ + case KRB5_File_Cache: + + dwError = LsaAllocateString( +- "FILE:/var/lib/likewise/krb5cc_lsass", ++ "FILE:/var/lib/likewise-open5/krb5cc_lsass", + &pszCachePath); + BAIL_ON_LSA_ERROR(dwError); + --- likewise-open5-5.0.3991.1.orig/debian/patches/abstractions-cleanup.diff +++ likewise-open5-5.0.3991.1/debian/patches/abstractions-cleanup.diff @@ -0,0 +1,22 @@ +Index: likewise-open5-5.0.3991.1/domainjoin/libdomainjoin/src/djnsswitch.c +=================================================================== +--- likewise-open5-5.0.3991.1.orig/domainjoin/libdomainjoin/src/djnsswitch.c 2009-04-06 09:58:39.000000000 +0200 ++++ likewise-open5-5.0.3991.1/domainjoin/libdomainjoin/src/djnsswitch.c 2009-04-06 10:01:36.000000000 +0200 +@@ -1062,7 +1062,7 @@ + { + LW_CLEANUP_CTERR(exc, CTCopyFileWithOriginalPerms(APPARMOR_NSSWITCH, APPARMOR_NSSWITCH ".new")); + LW_CLEANUP_CTERR(exc, CTOpenFile(APPARMOR_NSSWITCH ".new", "a", &file)); +- LW_CLEANUP_CTERR(exc, CTFilePrintf(file, "# likewise\n%s# end likewise\n", ++ LW_CLEANUP_CTERR(exc, CTFilePrintf(file, "# -start- likewise\n%s# -end- likewise\n", + addString)); + + CTSafeCloseFile(&file); +@@ -1071,7 +1071,7 @@ + } + else + { +- LW_CLEANUP_CTERR(exc, CTRunSedOnFile(APPARMOR_NSSWITCH, APPARMOR_NSSWITCH, FALSE, "/^[ \t]*#[ \t]*likewise[ \t]*$/,/^[ \t]*#[ \t]*end likewise[ \t]*$/d")); ++ LW_CLEANUP_CTERR(exc, CTRunSedOnFile(APPARMOR_NSSWITCH, APPARMOR_NSSWITCH, FALSE, "/^[ \t]*#[ \t]*-start- likewise[ \t]*$/,/^[ \t]*#[ \t]*-end- likewise[ \t]*$/d")); + LW_CLEANUP_CTERR(exc, CTRunSedOnFile(APPARMOR_NSSWITCH, APPARMOR_NSSWITCH, FALSE, "/^[ \t]*#[ \t]*centeris[ \t]*$/,/^[ \t]*#[ \t]*end centeris[ \t]*$/d")); + } +