proposed diffs for HPUX packaging, building winbindd by defau lt o n HPUX 11.x and adding HPUX tips to winbindd.html

MCCALL,DON (HP-USA,ex1) don_mccall at hp.com
Wed Feb 6 08:17:24 GMT 2002


Thanks, Albert;
I'm not very up to speed on how the whole autoconf thing works; thus I
changed and tested the
file that fixed it on my system...  I wasn't sure that autoconf was re-run
to generate a new configure script for a patch.  Ditto for winbind.html -
didn't know that for a patch we would regenerate the .html from the
.sgml.... Thanks for the pointer.
I have included the appropriate diffs based on your feedback!  NOTE -
whoever does the generate from the sgml files - I don't have docbooks, etc
to verify my changes to the winbind.sgml, so please take this into
consideration. (Dave CB, I think this is you?)

Jeremy, in addition, made one more change to the packaging scripts for HPUX
- the original one  was creating the var and locks directory in a
non-standard place.
Don


-----Original Message-----
From: Albert Chin [mailto:samba-technical at thewrittenword.com]
Sent: Wednesday, February 06, 2002 7:54 AM
To: MCCALL,DON (HP-USA,ex1)
Cc: 'jra at samba.org'; ALLISON,JEREMY (HP-Cupertino,ex1);
'samba-technical at lists.samba.org'
Subject: Re: proposed diffs for HPUX packaging, building winbindd by
default o n HPUX 11.x and adding HPUX tips to winbindd.html


On Tue, Feb 05, 2002 at 12:05:33PM -0500, MCCALL,DON (HP-USA,ex1) wrote:
> Enclosed are diffs to ..samba/docs/htmldocs/winbind.html  (to add
> configuration hints for HP-UX to the mix), a tiny change to the HPUX
> packaging scripts so that we use the correct OS_VERSION,
> and finally, if you like, a change to configure so that winbind builds by
> default if the os revision of HPUX is 11.0 or greater.

Shouldn't you patch docbook/projdoc/winbind.sgml rather than
docs/htmldocs/winbind.html? I think the latter is auto-generated.
Ditto for your source/configure patch. You should patch
source/configure.in.

-- 
albert chin (china at thewrittenword.com)

-------------- next part --------------

Index: gen_psf.sh
===================================================================
RCS file: /cvsroot/samba/packaging/HPUX/Attic/gen_psf.sh,v
retrieving revision 1.1.4.1
diff -u -r1.1.4.1 gen_psf.sh
--- gen_psf.sh	31 Jan 2002 22:43:33 -0000	1.1.4.1
+++ gen_psf.sh	6 Feb 2002 15:14:11 -0000
@@ -201,8 +201,8 @@
     file    -m 0755 -o root -g sys / /usr/local/samba/newconfig/
     file    -m 0755 -o root -g sys / /usr/local/samba/newconfig/examples/
     file    -m 0700 -o root -g sys / /usr/local/samba/private/
-    file    -m 0755 -o root -g sys / /var/usr/local/samba/
-    file    -m 0755 -o root -g sys / /var/usr/local/samba/locks/
+    file    -m 0755 -o root -g sys / /usr/local/samba/var/
+    file    -m 0755 -o root -g sys / /usr/local/samba/var/locks/
 
     file    -m 0444 -o root -g sys ../../COPYING /usr/local/samba/COPYING
     file    -m 0555 -o root -g sys ./samba.boot /sbin/init.d/samba
Index: gen_psf_with_winbind.sh
===================================================================
RCS file: /cvsroot/samba/packaging/HPUX/Attic/gen_psf_with_winbind.sh,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 gen_psf_with_winbind.sh
--- gen_psf_with_winbind.sh	1 Feb 2002 20:33:40 -0000	1.1.2.1
+++ gen_psf_with_winbind.sh	6 Feb 2002 15:14:11 -0000
@@ -21,8 +21,6 @@
 #     SCRIPT="smbtar addtosmbpass convert_smbpasswd"
 
  OS_RELEASE='?.10.[2-9]?|?.11.*'
-#  WINBINDD_OS_RELEASE='?.11.*'
- WINBINDD_OS_RELEASE='?.11.11'
 
 #- Below variables should be exported from create_package.sh
 
@@ -189,7 +187,7 @@
     tag			core
     title		Samba server core components
     revision		$VERSION
-    os_release		$WINBIND_OS_RELEASE
+    os_release		$OS_RELEASE
     is_kernel		false
     is_reboot		false
     is_secure		false
@@ -203,8 +201,8 @@
     file    -m 0755 -o root -g sys / /usr/local/samba/newconfig/
     file    -m 0755 -o root -g sys / /usr/local/samba/newconfig/examples/
     file    -m 0700 -o root -g sys / /usr/local/samba/private/
-    file    -m 0755 -o root -g sys / /var/usr/local/samba/
-    file    -m 0755 -o root -g sys / /var/usr/local/samba/locks/
+    file    -m 0755 -o root -g sys / /usr/local/samba/var/
+    file    -m 0755 -o root -g sys / /usr/local/samba/var/locks/
 
     file    -m 0444 -o root -g sys ../../COPYING /usr/local/samba/COPYING
     file    -m 0555 -o root -g sys ./samba.boot /sbin/init.d/samba
-------------- next part --------------

Index: winbind.sgml
===================================================================
RCS file: /cvsroot/samba/docs/docbook/projdoc/winbind.sgml,v
retrieving revision 1.1.2.8
diff -u -r1.1.2.8 winbind.sgml
--- winbind.sgml	27 Jan 2002 05:25:17 -0000	1.1.2.8
+++ winbind.sgml	6 Feb 2002 15:42:39 -0000
@@ -230,6 +230,11 @@
 		then add "winbind" into <filename>/etc/nsswitch.conf</filename> at 
 		the appropriate place. The C library will then call Winbind to 
 		resolve user and group names.</para>
+		<para>HP-UX NOTE: nss libraries are kept in <filename>/usr/lib</filename>.
+		 The <filename>libnss_winbind.so</filename> should
+ 		be renamed <filename>libnss_winbind.1</filename> and copied into <filename>/usr/lib</filename> for HP-UX.
+		 IMPORTANT - using winbind as a method in <filename>/etc/nsswitch</filename>
+		 will cause the HP-UX passwd program to fail to change passwords for HP-UX users.</para>
 	</sect2>
 	
 	<sect2>
@@ -265,6 +270,10 @@
 		control files for relevant services are updated to allow 
 		authentication via winbind. See the PAM documentation
 		for more details.</para>
+		<para>HP-UX NOTE: the main configuration file for pam is <filename>/etc/pam.conf</filename>.
+      		In addition the <filename>pam_winbind.so</filename> module for HP-UX should be renamed
+      		<filename>libpam_winbind.1</filename> and copied into <filename>/usr/lib/security/</filename> 
+		instead of the directory mentioned above.</para>
 	</sect2>
 	
 	
@@ -339,7 +348,9 @@
 <para>
 This HOWTO has been written from a 'RedHat-centric' perspective, so if 
 you are using another distribution, you may have to modify the instructions 
-somewhat to fit the way your distribution works.
+somewhat to fit the way your distribution works.  Additional configuration
+notes have been added (marked by HP-UX NOTE:) to extend this document for 
+configuring winbind on HP-UX 11.0 and above.
 </para>
 
 
@@ -381,7 +392,8 @@
 If you have a samba configuration file that you are currently 
 using... <emphasis>BACK IT UP!</emphasis>  If your system already uses PAM, 
 <emphasis>back up the <filename>/etc/pam.d</filename> directory 
-contents!</emphasis> If you haven't already made a boot disk, 
+ (HP-UX NOTE: <filename>/etc/pam.conf</filename> for HP-UX) contents!</emphasis>
+ If you haven't already made a boot disk, 
 <emphasis>MAKE ONE NOW!</emphasis>
 </para>
 
@@ -389,7 +401,7 @@
 Messing with the pam configuration files can make it nearly impossible 
 to log in to yourmachine. That's why you want to be able to boot back 
 into your machine in single user mode and restore your 
-<filename>/etc/pam.d</filename> back to the original state they were in if 
+<filename>/etc/pam.d</filename> (HP-UX NOTE: <filename>/etc/pam.conf</filename> for HP-UX) back to the original state they were in if 
 you get frustrated with the way things are going.  ;-)
 </para>
 
@@ -411,6 +423,9 @@
 means <filename>pam-0.74-22</filename>.  For best results, it is helpful to also
 install the development packages in <filename>pam-devel-0.74-22</filename>.
 </para>
+<para>HP-UX NOTE: That means you must be on version 11.0 of the operating system
+or higher, as this was when PAM was introduced for the HP-UX os.
+</para>
 
 </sect2>
 
@@ -432,7 +447,11 @@
 my RedHat system has both <filename>pam-0.74-22</filename> and
 <filename>pam-devel-0.74-22</filename> RPMs installed.
 </para>
-
+<para>HP-UX NOTE: At 11.0 and above, PAM is the underlying authentication engine
+and nothing additional need be installed. Also note, the main configuration file
+ for PAM on HP-UX is <filename>/etc/pam.conf</filename>. 
+See man page on <filename>pam.conf</filename> for configuration details.
+</para>
 <sect3>
 <title>Configure and compile SAMBA</title>
 
@@ -480,6 +499,9 @@
 <para>
 <prompt>root#</prompt> <command>ln -s /lib/libnss_winbind.so /lib/libnss_winbind.so.2</command>
 </para>
+<para>HP-UX NOTE: nsswitch on HP-UX expects the library names to end in .1
+ (the number one). So replace above three lines with</para>
+<para><prompt>root#</prompt> <command>cp ../samba/source/nsswitch/libnss_winbind.so /usr/lib/libnss_winbind.1</command></para>
 
 <para>
 Now, as root you need to edit <filename>/etc/nsswitch.conf</filename> to 
@@ -509,7 +531,9 @@
 This makes <filename>libnss_winbind</filename> available to winbindd 
 and echos back a check to you.
 </para>
-
+<para>HP-UX NOTE: the 'shadow' entry is not necessary; in addition, changes
+        to <filename>/etc/nsswitch.conf</filename> are recognized without resort to
+        additional loading programs.</para>
 </sect3>
 
 
-------------- next part --------------

Index: configure
===================================================================
RCS file: /cvsroot/samba/source/configure,v
retrieving revision 1.125.4.107
diff -u -r1.125.4.107 configure
--- configure	31 Jan 2002 21:46:35 -0000	1.125.4.107
+++ configure	6 Feb 2002 15:04:53 -0000
@@ -1373,6 +1373,7 @@
 				CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
 		   		cat >> confdefs.h <<\EOF
 #define USE_BOTH_CRYPT_CALLS 1
+#define HAVE_NSSWITCH 1
 EOF
 
 				;;
@@ -12936,7 +12937,7 @@
 # Initially, the value of $host_os decides whether winbind is supported
 
 case "$host_os" in 
-        *linux*|*solaris*|*irix*)
+        *linux*|*solaris*|*irix*|*hpux11*)
 		HAVE_WINBIND=yes
                 ;;
         *)
Index: configure.in
===================================================================
RCS file: /cvsroot/samba/source/configure.in,v
retrieving revision 1.130.4.109
diff -u -r1.130.4.109 configure.in
--- configure.in	31 Jan 2002 21:48:04 -0000	1.130.4.109
+++ configure.in	6 Feb 2002 15:04:54 -0000
@@ -2570,7 +2570,7 @@
 # Initially, the value of $host_os decides whether winbind is supported
 
 case "$host_os" in 
-        *linux*|*solaris*|*irix*)
+        *linux*|*solaris*|*irix*|*hpux11*)
 		HAVE_WINBIND=yes
                 ;;
         *)
Index: include/config.h.in
===================================================================
RCS file: /cvsroot/samba/source/include/config.h.in,v
retrieving revision 1.83.4.52
diff -u -r1.83.4.52 config.h.in
--- include/config.h.in	31 Jan 2002 21:48:06 -0000	1.83.4.52
+++ include/config.h.in	6 Feb 2002 15:04:54 -0000
@@ -92,6 +92,7 @@
 #undef IRIX
 #undef IRIX6
 #undef HPUX
+#undef HAVE_NSSWITCH
 #undef QNX
 #undef SCO
 #undef OSF1
Index: nsswitch/nss.h
===================================================================
RCS file: /cvsroot/samba/source/nsswitch/nss.h,v
retrieving revision 1.1.2.7
diff -u -r1.1.2.7 nss.h
--- nsswitch/nss.h	9 Jan 2002 03:37:14 -0000	1.1.2.7
+++ nsswitch/nss.h	6 Feb 2002 15:04:55 -0000
@@ -73,7 +73,7 @@
 #define NSD_MEM_VOLATILE 1
 #define NSD_MEM_DYNAMIC 2
 
-#elif defined(HPUX)
+#elif defined(HPUX) && defined(HAVE_NSSWITCH)
 /* HP-UX 11 */
 
 #include "nsswitch/hp_nss_common.h"


More information about the samba-technical mailing list