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 hp.com
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)...

Don

 <<message.txt>> 
-------------- next part --------------


===================================================================
RCS file: /cvsroot/samba/docs/htmldocs/winbind.html,v
retrieving revision 1.1.2.6
diff -u -r1.1.2.6 winbind.html
--- docs/htmldocs/winbind.html	6 Dec 2001 07:31:29 -0000	1.1.2.6
+++ 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 libnss_winbind.so 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
 ></DIV
 ><DIV
 CLASS="SECT2"
@@ -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 pam_winbind.so module for HP-UX should be renamed
+      libpam_winbind.1 and copied into /usr/lib/security/ instead of the
+      directory mentioned above.</P
 ></DIV
 ><DIV
 CLASS="SECT2"
@@ -409,7 +414,7 @@
 ><P
 >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
 ><DIV
 CLASS="SECT2"
 ><HR><H2
@@ -427,7 +432,7 @@
 ><P
 >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
 ><P
 ></P
 ><UL
@@ -482,7 +487,7 @@
 >back up the <TT
 CLASS="FILENAME"
 >/etc/pam.d</TT
-> directory 
+> directory (HP-UX NOTE: /etc/pam.conf for HP-UX) 
 contents!</I
 > If you haven't already made a boot disk, 
 <I
@@ -496,7 +501,7 @@
 <TT
 CLASS="FILENAME"
 >/etc/pam.d</TT
-> 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
 ><P
 >The latest version of SAMBA (version 2.2.2 as of this writing), now 
@@ -523,6 +528,8 @@
 CLASS="FILENAME"
 >pam-devel-0.74-22</TT
 >.</P
+><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
 ></DIV
 ><DIV
 CLASS="SECT2"
@@ -569,6 +576,7 @@
 CLASS="FILENAME"
 >pam-devel-0.74-22</TT
 > 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
 ><DIV
 CLASS="SECT3"
 ><HR><H3
@@ -610,7 +618,7 @@
 >root#</TT
 > <B
 CLASS="COMMAND"
->./configure --with-winbind</B
+>./configure --with-winbind --with-pam</B
 >
 <TT
 CLASS="PROMPT"
@@ -671,8 +679,11 @@
 CLASS="COMMAND"
 >ln -s /lib/libnss_winbind.so /lib/libnss_winbind.so.2</B
 ></P
-><P
->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/libnss_winbind.so /usr/lib/libnss_winbind.1</b></P>
+<P>Now, as root you need to edit <TT
 CLASS="FILENAME"
 >/etc/nsswitch.conf</TT
 > to 
@@ -715,7 +726,10 @@
 >libnss_winbind</TT
 > available to winbindd 
 and echos back a check to you.</P
-></DIV
+><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
 ><DIV
 CLASS="SECT3"
 ><HR><H3
@@ -1108,7 +1122,7 @@
 >from the <TT
 CLASS="FILENAME"
 >../source</TT
-> directory.  The
+> directory. (if you used --with-pam  in your configure options, this make step will not be necessary; pam_winbind.so will already be there.)  The
 <TT
 CLASS="FILENAME"
 >pam_winbind.so</TT
@@ -1309,4 +1323,4 @@
 ></DIV
 ></BODY
 ></HTML
->
\ No newline at end of file
+>
Index: packaging/HPUX/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
--- packaging/HPUX/gen_psf_with_winbind.sh	1 Feb 2002 20:33:40 -0000	1.1.2.1
+++ packaging/HPUX/gen_psf_with_winbind.sh	5 Feb 2002 16:46: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
Index: source/configure
===================================================================
RCS file: /cvsroot/samba/source/configure,v
retrieving revision 1.125.4.107
diff -u -r1.125.4.107 configure
--- source/configure	31 Jan 2002 21:46:35 -0000	1.125.4.107
+++ 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*)
 		HAVE_WINBIND=yes
                 ;;
         *)


More information about the samba-technical mailing list