[Freeipa-devel] sssd on suse
Sumit Bose
sbose at redhat.com
Tue Mar 31 17:44:44 UTC 2009
Hi,
I have build sssd-0.2.1 (the current F11 version) for some suse
versions. You can find them in
http://download.opensuse.org/repositories/home:/sbose/ .
Especially for SLES10 the following patches were needed. I do not think
that we should include any of the patches, but maybe they help porting
to other platforms.
bye,
Sumit
- older version of autotools:
diff -Nurb sssd-0.2.1/server/configure.ac
new-sssd-0.2.1//server/configure.ac
--- sssd-0.2.1/server/configure.ac 2009-03-10 22:26:55.000000000 +0100
+++ new-sssd-0.2.1//server/configure.ac 2009-03-31 17:46:13.000000000 +0200
@@ -29,7 +29,7 @@
SSSD_LIBEXEC_PATH=$libexecdir/$PACKAGE_NAME
AC_SUBST(SSSD_LIBEXEC_PATH)
-SSSD_INTROSPECT_PATH=$datarootdir/$PACKAGE_NAME/introspect
+SSSD_INTROSPECT_PATH=$datadir/$PACKAGE_NAME/introspect
AC_SUBST(SSSD_INTROSPECT_PATH)
m4_include(build_macros.m4)
- pre 1.0.0 version of dbus
diff -Nurb sssd-0.2.1/server/infopipe/infopipe.h
new-sssd-0.2.1//server/infopipe/infopipe.h
--- sssd-0.2.1/server/infopipe/infopipe.h 2009-03-10 22:26:55.000000000
+0100
+++ new-sssd-0.2.1//server/infopipe/infopipe.h 2009-03-31
17:05:58.000000000 +0200
@@ -25,6 +25,10 @@
#include <dbus/dbus.h>
#include "sbus/sssd_dbus.h"
+#ifndef DBUS_ERROR_FILE_EXISTS
+#define DBUS_ERROR_FILE_EXISTS "org.freedesktop.DBus.Error.FileExists"
+#endif
+
#define INFP_INTROSPECT_XML
"infopipe/org.freeipa.sssd.infopipe.Introspect.xml"
#define INFOPIPE_DBUS_NAME "org.freeipa.sssd.infopipe1"
- LBS style init
diff -Nurb sssd-0.2.1/server/sysv/sssd new-sssd-0.2.1//server/sysv/sssd
--- sssd-0.2.1/server/sysv/sssd 2009-03-10 22:26:55.000000000 +0100
+++ new-sssd-0.2.1//server/sysv/sssd 2009-03-30 19:54:35.000000000 +0200
@@ -1,5 +1,21 @@
#!/bin/sh
#
+### BEGIN INIT INFO
+# Provides: sssd
+# Required-Start: $remote_fs $time
+# Should-Start: $syslog
+# Should-Stop: $null
+# Required-Stop: $null
+# Default-Start: 3 5
+# Default-Stop: 0 1 2 6
+# Short-Description: System Security Services Daemon
+# Description: Provides a set of daemons to manage access to remote
directories
+# and authentication mechanisms. It provides an NSS and PAM
+# interface toward the system and a pluggable backend
system to
+# connect to multiple different account sources. It is
also the
+# basis to provide client auditing and policy services for
projects
+# like FreeIPA.
+### END INIT INFO
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote
directories
@@ -14,7 +30,7 @@
prog="sssd"
# Source function library.
-. /etc/init.d/functions
+test -r /etc/init.d/functions && . /etc/init.d/functions
SSSD=/usr/sbin/sssd
- older version of pam
diff -Nurb sssd-0.2.1/sss_client/pam_sss.c
new-sssd-0.2.1//sss_client/pam_sss.c
--- sssd-0.2.1/sss_client/pam_sss.c 2009-03-10 22:26:55.000000000 +0100
+++ new-sssd-0.2.1//sss_client/pam_sss.c 2009-03-31 17:02:51.000000000 +0200
@@ -11,6 +11,19 @@
#include <security/pam_modules.h>
#include <security/pam_misc.h>
+/* for older suse versions */
+#ifndef _pam_overwrite_n
+#define _pam_overwrite_n(x,n) \
+do { \
+ register char *__xx__; \
+ register unsigned int __i__ = 0; \
+ if ((__xx__=(x))) \
+ for (;__i__<n; __i__++) \
+ __xx__[__i__] = 0; \
+} while (0)
+#endif
+
+
#include "sss_cli.h"
struct pam_items {
More information about the Freeipa-devel
mailing list