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

MCCALL,DON (HP-USA,ex1) don_mccall at
Tue Feb 5 12:36:05 GMT 2002

Hi Jeremy;
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.

I saw that you indicated you might be comming out with a 2.2.3a for another
problem, and I hoped you might be willing to include this as well.
BTW thanks for the fix for building samba on hpux systems without nsswitch.h
(10.20, etc)...


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

RCS file: /cvsroot/samba/docs/htmldocs/winbind.html,v
retrieving revision
diff -u -r1.1.2.6 winbind.html
--- docs/htmldocs/winbind.html	6 Dec 2001 07:31:29 -0000
+++ docs/htmldocs/winbind.html	5 Feb 2002 16:46:10 -0000
@@ -292,6 +292,7 @@
 > at 
 		the appropriate place. The C library will then call Winbind to 
 		resolve user and group names.</P
+><p>HP-UX NOTE: nss libraries are kept in /usr/lib. The should be renamed libnss_winbind.1 and copied into /usr/lib for HP-UX. IMPORTANT - using winbind as a method in /etc/nsswitch will cause the HP-UX passwd program to fail to change passwords for HP-UX users.</P
@@ -341,6 +342,10 @@
 		control files for relevant services are updated to allow 
 		authentication via winbind. See the PAM documentation
 		for more details.</P
+><P>HP-UX NOTE: the main configuration file for pam is /etc/pam.conf.
+      In addition the module for HP-UX should be renamed
+      libpam_winbind.1 and copied into /usr/lib/security/ instead of the
+      directory mentioned above.</P
@@ -409,7 +414,7 @@
 >This HOWTO describes how to get winbind services up and running 
 to control access and authenticate users on your Linux box using 
-the winbind services which come with SAMBA 2.2.2.</P
+the winbind services which come with SAMBA 2.2.3.</P
@@ -427,7 +432,7 @@
 >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.</P
+somewhat to fit the way your distribution works. Additional configuration notes have been added (HP-UX NOTE:) to extend this document for configuring winbind on HP-UX 11.0 and above.</P
@@ -482,7 +487,7 @@
 >back up the <TT
-> directory 
+> directory (HP-UX NOTE: /etc/pam.conf for HP-UX) 
 > If you haven't already made a boot disk, 
@@ -496,7 +501,7 @@
-> back to the original state they were in if 
+> (HP-UX NOTE: /etc/pam.conf for HP-UX) back to the original state they were in if 
 you get frustrated with the way things are going.  ;-)</P
 >The latest version of SAMBA (version 2.2.2 as of this writing), now 
@@ -523,6 +528,8 @@
+><P>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.</P
@@ -569,6 +576,7 @@
 > RPMs installed.</P
+><P>HP-UX NOTE: At 11.0 and above, PAM is the underlying authentication engine, and nothing additional need be installed. In addition, the main configuration file for PAM on HP-UX is /etc/pam.conf. See man page on pam.conf for configuration details.</P
@@ -610,7 +618,7 @@
 > <B
->./configure --with-winbind</B
+>./configure --with-winbind --with-pam</B
@@ -671,8 +679,11 @@
 >ln -s /lib/ /lib/</B
->Now, as root you need to edit <TT
+><P>HP-UX NOTE: nsswitch on HP-UX expects the library names to end in &quot;.1&quot;&nbsp; (the number one). So replace above three lines with</p>
+        <p>&nbsp;&nbsp; <b class="COMMAND">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+        </b>root#<b class="COMMAND"> cp
+        ../samba/source/nsswitch/ /usr/lib/libnss_winbind.1</b></P>
+<P>Now, as root you need to edit <TT
 > to 
@@ -715,7 +726,10 @@
 > available to winbindd 
 and echos back a check to you.</P
+><P>HP-UX NOTE: the 'shadow' entry is not necessary; in addition, changes
+        to /etc/nsswitch.conf are recognized without resort to
+        additional loading programs.</P
+> </DIV
@@ -1108,7 +1122,7 @@
 >from the <TT
-> directory.  The
+> directory. (if you used --with-pam  in your configure options, this make step will not be necessary; will already be there.)  The
@@ -1309,4 +1323,4 @@
\ No newline at end of file
Index: packaging/HPUX/
RCS file: /cvsroot/samba/packaging/HPUX/Attic/,v
retrieving revision
diff -u -r1.1.2.1
--- packaging/HPUX/	1 Feb 2002 20:33:40 -0000
+++ packaging/HPUX/	5 Feb 2002 16:46:11 -0000
@@ -21,8 +21,6 @@
 #     SCRIPT="smbtar addtosmbpass convert_smbpasswd"
 #- Below variables should be exported from
@@ -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
Index: source/configure
RCS file: /cvsroot/samba/source/configure,v
retrieving revision
diff -u -r1.125.4.107 configure
--- source/configure	31 Jan 2002 21:46:35 -0000
+++ source/configure	5 Feb 2002 16:46:12 -0000
@@ -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*)

More information about the samba-technical mailing list