Re: Using PAM with SFS

2002-10-03 Thread Massimiliano Mirra

On Mon, Sep 30, 2002 at 04:04:46PM +0200, Daniel Kobras wrote:
 tags 144857 + patch

It compiles like fresh water now.  Thanks a lot. :-)

Massimiliano


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Using PAM with SFS

2002-10-03 Thread Massimiliano Mirra
On Mon, Sep 30, 2002 at 04:04:46PM +0200, Daniel Kobras wrote:
 tags 144857 + patch

It compiles like fresh water now.  Thanks a lot. :-)

Massimiliano



Using PAM with SFS

2002-09-30 Thread Massimiliano Mirra

I'm using the libpam-sfs PAM module, which lets users authenticate at
login and for importing directories in one single step.  The binary
.deb that comes with Woody works fine.  But...

Short version: when I try to compile it from source I hit a wall.
Anybody managed to compile it?

Long version:

  $ apt-get source libpam-sfs
  E: Unable to find a source package for libpam-sfs

So I got it from SourceForge (libpam-sfs-0.2.2.tar.gz), unpacked it
and run dpkg-buildpackage.  It dies with:

  make: ./configure: Command not found
  
Ooops, there is no configure.  But there is autogen.sh.  I run
autogen.sh and then dpkg-buildpackage again:

  checking for main in -lgmp3... no
  configure: error: gmp3 library not found

Uh?

  $ dpkg --status libgmp3
  Package: libgmp3
  Status: install ok installed

Let's see...

  # ln -s /usr/lib/libgmp.so.3 /usr/lib/libgmp3.so
  # dpkg-buildpackage

Ok, past libgmp3, but now it ends with...

  checking for main in -lsfscrypt... no
  configure: error: sfscrypt library not found

But debian/rules does call configure --with-sfs-libdir=/usr/lib/sfs,
and:

  $ ls /usr/lib/sfs/libsfscrypt.*
  /usr/lib/sfs/libsfscrypt.a
  /usr/lib/sfs/libsfscrypt.la
  /usr/lib/sfs/libsfscrypt.so

What am I doing wrong?  BTW, I've tried to compile libpam-sfs on RH
7.2 and 7.3 too with no success, either (though the problem there
seems related to nana-config.h).  I'm setting a file server in an
environment where clients' roots aren't necessarily trusted and
phisical access to the network is not restricted, so NFS isn't the
healthiest choice and I have found no alternative beyond SFS that is
reasonably gentle to sysadmins.  (No, after LDAP plus Samba there's no
way I'm grokking Kerberos for AFS. ;-)

Thank you for any help,

Massimiliano


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Using PAM with SFS

2002-09-30 Thread Laurent Luyckx

You need the libgmp3-dev package for compiling...

Cheers.

On Mon, 2002-09-30 at 11:56, Massimiliano Mirra wrote:
 I'm using the libpam-sfs PAM module, which lets users authenticate at
 login and for importing directories in one single step.  The binary
 .deb that comes with Woody works fine.  But...
 
 Short version: when I try to compile it from source I hit a wall.
 Anybody managed to compile it?
 
 Long version:
 
   $ apt-get source libpam-sfs
   E: Unable to find a source package for libpam-sfs
 
 So I got it from SourceForge (libpam-sfs-0.2.2.tar.gz), unpacked it
 and run dpkg-buildpackage.  It dies with:
 
   make: ./configure: Command not found
   
 Ooops, there is no configure.  But there is autogen.sh.  I run
 autogen.sh and then dpkg-buildpackage again:
 
   checking for main in -lgmp3... no
   configure: error: gmp3 library not found
 
 Uh?
 
   $ dpkg --status libgmp3
   Package: libgmp3
   Status: install ok installed
 
 Let's see...
 
   # ln -s /usr/lib/libgmp.so.3 /usr/lib/libgmp3.so
   # dpkg-buildpackage
 
 Ok, past libgmp3, but now it ends with...
 
   checking for main in -lsfscrypt... no
   configure: error: sfscrypt library not found
 
 But debian/rules does call configure --with-sfs-libdir=/usr/lib/sfs,
 and:
 
   $ ls /usr/lib/sfs/libsfscrypt.*
   /usr/lib/sfs/libsfscrypt.a
   /usr/lib/sfs/libsfscrypt.la
   /usr/lib/sfs/libsfscrypt.so
 
 What am I doing wrong?  BTW, I've tried to compile libpam-sfs on RH
 7.2 and 7.3 too with no success, either (though the problem there
 seems related to nana-config.h).  I'm setting a file server in an
 environment where clients' roots aren't necessarily trusted and
 phisical access to the network is not restricted, so NFS isn't the
 healthiest choice and I have found no alternative beyond SFS that is
 reasonably gentle to sysadmins.  (No, after LDAP plus Samba there's no
 way I'm grokking Kerberos for AFS. ;-)
 
 Thank you for any help,
 
 Massimiliano
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 




signature.asc
Description: This is a digitally signed message part


Re: Using PAM with SFS

2002-09-30 Thread Massimiliano Mirra

On Mon, Sep 30, 2002 at 12:01:42PM +0200, Laurent Luyckx wrote:
 You need the libgmp3-dev package for compiling...

Here already:

  $ dpkg --status libgmp3-dev
  Package: libgmp3-dev
  Status: install ok installed

(And it's in the Build-Depends: of libpam-sfs, so dpkg-buildpackage
would have warned about it.)

Thanks anyway,

Massimiliano


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Using PAM with SFS

2002-09-30 Thread Wichert Akkerman

Previously Massimiliano Mirra wrote:
 Long version:
 
   $ apt-get source libpam-sfs
   E: Unable to find a source package for libpam-sfs

Make sure you have a deb-src entry for non-us in /etc/apt/sources.list
(and run apt-get update after adding it).

 So I got it from SourceForge (libpam-sfs-0.2.2.tar.gz), unpacked it
 and run dpkg-buildpackage.  It dies with:

apt-get build-dep libpam-sfs
apt-get source libpam-sfs

Works just fine.

Wichert.

-- 
  _
 [EMAIL PROTECTED] This space intentionally left occupied \
| [EMAIL PROTECTED]http://www.wiggy.net/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0  2805 3CB8 9250 2FA3 BC2D |


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Using PAM with SFS

2002-09-30 Thread Massimiliano Mirra

On Mon, Sep 30, 2002 at 12:09:14PM +0200, Wichert Akkerman wrote:
$ apt-get source libpam-sfs
E: Unable to find a source package for libpam-sfs
 Make sure you have a deb-src entry for non-us in
 /etc/apt/sources.list

Duh, stoopid me.  Of course now it apt-gets it.  It still bombs on
libsfscrypt, though.

Thank you.

Massimiliano


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Using PAM with SFS

2002-09-30 Thread Massimiliano Mirra

On Mon, Sep 30, 2002 at 07:24:17PM +0800, SDiZ (UHome) wrote:
 Duh, stoopid me.  Of course now it apt-gets it.  It still bombs on
 libsfscrypt, though.
 
 did you add non-US source ?
 some crypt program have not moved to main yet..

Yes, non-US source is there now (that was the reason apt-get source
libpam-sfs was not working in the first place).  The problem with
libsfscrypt happens at configure time: the lib is there but configure
can't seem to find it:

# dpkg-buildpackage
[...]
checking for sfsmisc library in /usr/lib/sfs... yes
checking for main in -lsfscrypt... no
configure: error: sfscrypt library not found

$ ls -l /usr/lib/sfs/libsfscrypt.*
-rw-r--r--1 root root  5745846 Sep 19 12:09 /usr/lib/sfs/libsfscrypt.a
-rw-r--r--1 root root  683 Sep 19 12:09 /usr/lib/sfs/libsfscrypt.la
lrwxrwxrwx1 root root   21 Sep 23 15:36 /usr/lib/sfs/libsfscrypt.so - 
/lib/libsfscrypt.so.0

$ ls -l /lib/libsfscrypt.*

lrwxrwxrwx1 root root   20 Sep 23 15:36 /lib/libsfscrypt.so.0 - 
libsfscrypt.so.0.0.0
-rw-r--r--1 root root   427772 Sep 19 12:10 /lib/libsfscrypt.so.0.0.0



Massimiliano



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Using PAM with SFS

2002-09-30 Thread Alan James

On Mon, 30 Sep 2002 14:02:54 +0200, Massimiliano Mirra
[EMAIL PROTECTED] wrote:

Yes, non-US source is there now (that was the reason apt-get source
libpam-sfs was not working in the first place).  The problem with
libsfscrypt happens at configure time: the lib is there but configure
can't seem to find it:

You want to apt-get build-dep libpam-sfs that will install sfs-dev among
other things.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Using PAM with SFS

2002-09-30 Thread Massimiliano Mirra

On Mon, Sep 30, 2002 at 01:26:40PM +0100, Alan James wrote:
 Yes, non-US source is there now (that was the reason apt-get source
 libpam-sfs was not working in the first place).  The problem with
 libsfscrypt happens at configure time: the lib is there but configure
 can't seem to find it:
 
 You want to apt-get build-dep libpam-sfs that will install sfs-dev among
 other things.

Thanks, but everything is already in place:

# apt-get build-dep libpam-sfs
Reading Package Lists... Done
Building Dependency Tree... Done
0 packages upgraded, 0 newly installed, 0 to remove and 3  not
upgraded.

I'm running plain dpkg-buildpackage in the libpam-sfs-0.2.2 dir,
i.e. with no -d switch (i.e. without suppressing warnings related to
Build-Depends:).


Massimiliano


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Using PAM with SFS

2002-09-30 Thread Massimiliano Mirra
I'm using the libpam-sfs PAM module, which lets users authenticate at
login and for importing directories in one single step.  The binary
.deb that comes with Woody works fine.  But...

Short version: when I try to compile it from source I hit a wall.
Anybody managed to compile it?

Long version:

  $ apt-get source libpam-sfs
  E: Unable to find a source package for libpam-sfs

So I got it from SourceForge (libpam-sfs-0.2.2.tar.gz), unpacked it
and run dpkg-buildpackage.  It dies with:

  make: ./configure: Command not found
  
Ooops, there is no configure.  But there is autogen.sh.  I run
autogen.sh and then dpkg-buildpackage again:

  checking for main in -lgmp3... no
  configure: error: gmp3 library not found

Uh?

  $ dpkg --status libgmp3
  Package: libgmp3
  Status: install ok installed

Let's see...

  # ln -s /usr/lib/libgmp.so.3 /usr/lib/libgmp3.so
  # dpkg-buildpackage

Ok, past libgmp3, but now it ends with...

  checking for main in -lsfscrypt... no
  configure: error: sfscrypt library not found

But debian/rules does call configure --with-sfs-libdir=/usr/lib/sfs,
and:

  $ ls /usr/lib/sfs/libsfscrypt.*
  /usr/lib/sfs/libsfscrypt.a
  /usr/lib/sfs/libsfscrypt.la
  /usr/lib/sfs/libsfscrypt.so

What am I doing wrong?  BTW, I've tried to compile libpam-sfs on RH
7.2 and 7.3 too with no success, either (though the problem there
seems related to nana-config.h).  I'm setting a file server in an
environment where clients' roots aren't necessarily trusted and
phisical access to the network is not restricted, so NFS isn't the
healthiest choice and I have found no alternative beyond SFS that is
reasonably gentle to sysadmins.  (No, after LDAP plus Samba there's no
way I'm grokking Kerberos for AFS. ;-)

Thank you for any help,

Massimiliano



Re: Using PAM with SFS

2002-09-30 Thread Laurent Luyckx
You need the libgmp3-dev package for compiling...

Cheers.

On Mon, 2002-09-30 at 11:56, Massimiliano Mirra wrote:
 I'm using the libpam-sfs PAM module, which lets users authenticate at
 login and for importing directories in one single step.  The binary
 .deb that comes with Woody works fine.  But...
 
 Short version: when I try to compile it from source I hit a wall.
 Anybody managed to compile it?
 
 Long version:
 
   $ apt-get source libpam-sfs
   E: Unable to find a source package for libpam-sfs
 
 So I got it from SourceForge (libpam-sfs-0.2.2.tar.gz), unpacked it
 and run dpkg-buildpackage.  It dies with:
 
   make: ./configure: Command not found
   
 Ooops, there is no configure.  But there is autogen.sh.  I run
 autogen.sh and then dpkg-buildpackage again:
 
   checking for main in -lgmp3... no
   configure: error: gmp3 library not found
 
 Uh?
 
   $ dpkg --status libgmp3
   Package: libgmp3
   Status: install ok installed
 
 Let's see...
 
   # ln -s /usr/lib/libgmp.so.3 /usr/lib/libgmp3.so
   # dpkg-buildpackage
 
 Ok, past libgmp3, but now it ends with...
 
   checking for main in -lsfscrypt... no
   configure: error: sfscrypt library not found
 
 But debian/rules does call configure --with-sfs-libdir=/usr/lib/sfs,
 and:
 
   $ ls /usr/lib/sfs/libsfscrypt.*
   /usr/lib/sfs/libsfscrypt.a
   /usr/lib/sfs/libsfscrypt.la
   /usr/lib/sfs/libsfscrypt.so
 
 What am I doing wrong?  BTW, I've tried to compile libpam-sfs on RH
 7.2 and 7.3 too with no success, either (though the problem there
 seems related to nana-config.h).  I'm setting a file server in an
 environment where clients' roots aren't necessarily trusted and
 phisical access to the network is not restricted, so NFS isn't the
 healthiest choice and I have found no alternative beyond SFS that is
 reasonably gentle to sysadmins.  (No, after LDAP plus Samba there's no
 way I'm grokking Kerberos for AFS. ;-)
 
 Thank you for any help,
 
 Massimiliano
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 



signature.asc
Description: This is a digitally signed message part


Re: Using PAM with SFS

2002-09-30 Thread Massimiliano Mirra
On Mon, Sep 30, 2002 at 12:01:42PM +0200, Laurent Luyckx wrote:
 You need the libgmp3-dev package for compiling...

Here already:

  $ dpkg --status libgmp3-dev
  Package: libgmp3-dev
  Status: install ok installed

(And it's in the Build-Depends: of libpam-sfs, so dpkg-buildpackage
would have warned about it.)

Thanks anyway,

Massimiliano



Re: Using PAM with SFS

2002-09-30 Thread Wichert Akkerman
Previously Massimiliano Mirra wrote:
 Long version:
 
   $ apt-get source libpam-sfs
   E: Unable to find a source package for libpam-sfs

Make sure you have a deb-src entry for non-us in /etc/apt/sources.list
(and run apt-get update after adding it).

 So I got it from SourceForge (libpam-sfs-0.2.2.tar.gz), unpacked it
 and run dpkg-buildpackage.  It dies with:

apt-get build-dep libpam-sfs
apt-get source libpam-sfs

Works just fine.

Wichert.

-- 
  _
 /[EMAIL PROTECTED] This space intentionally left occupied \
| [EMAIL PROTECTED]http://www.wiggy.net/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0  2805 3CB8 9250 2FA3 BC2D |



Re: Using PAM with SFS

2002-09-30 Thread Massimiliano Mirra
On Mon, Sep 30, 2002 at 12:09:14PM +0200, Wichert Akkerman wrote:
$ apt-get source libpam-sfs
E: Unable to find a source package for libpam-sfs
 Make sure you have a deb-src entry for non-us in
 /etc/apt/sources.list

Duh, stoopid me.  Of course now it apt-gets it.  It still bombs on
libsfscrypt, though.

Thank you.

Massimiliano



Re: Using PAM with SFS

2002-09-30 Thread SDiZ (UHome)

Massimiliano Mirra wrote:

Duh, stoopid me.  Of course now it apt-gets it.  It still bombs on
libsfscrypt, though.


did you add non-US source ?
some crypt program have not moved to main yet..




Re: Using PAM with SFS

2002-09-30 Thread Massimiliano Mirra
On Mon, Sep 30, 2002 at 07:24:17PM +0800, SDiZ (UHome) wrote:
 Duh, stoopid me.  Of course now it apt-gets it.  It still bombs on
 libsfscrypt, though.
 
 did you add non-US source ?
 some crypt program have not moved to main yet..

Yes, non-US source is there now (that was the reason apt-get source
libpam-sfs was not working in the first place).  The problem with
libsfscrypt happens at configure time: the lib is there but configure
can't seem to find it:

# dpkg-buildpackage
[...]
checking for sfsmisc library in /usr/lib/sfs... yes
checking for main in -lsfscrypt... no
configure: error: sfscrypt library not found

$ ls -l /usr/lib/sfs/libsfscrypt.*
-rw-r--r--1 root root  5745846 Sep 19 12:09 
/usr/lib/sfs/libsfscrypt.a
-rw-r--r--1 root root  683 Sep 19 12:09 
/usr/lib/sfs/libsfscrypt.la
lrwxrwxrwx1 root root   21 Sep 23 15:36 
/usr/lib/sfs/libsfscrypt.so - /lib/libsfscrypt.so.0

$ ls -l /lib/libsfscrypt.*

lrwxrwxrwx1 root root   20 Sep 23 15:36 /lib/libsfscrypt.so.0 
- libsfscrypt.so.0.0.0
-rw-r--r--1 root root   427772 Sep 19 12:10 
/lib/libsfscrypt.so.0.0.0



Massimiliano




Re: Using PAM with SFS

2002-09-30 Thread Alan James
On Mon, 30 Sep 2002 14:02:54 +0200, Massimiliano Mirra
[EMAIL PROTECTED] wrote:

Yes, non-US source is there now (that was the reason apt-get source
libpam-sfs was not working in the first place).  The problem with
libsfscrypt happens at configure time: the lib is there but configure
can't seem to find it:

You want to apt-get build-dep libpam-sfs that will install sfs-dev among
other things.



Re: Using PAM with SFS

2002-09-30 Thread Massimiliano Mirra
On Mon, Sep 30, 2002 at 01:26:40PM +0100, Alan James wrote:
 Yes, non-US source is there now (that was the reason apt-get source
 libpam-sfs was not working in the first place).  The problem with
 libsfscrypt happens at configure time: the lib is there but configure
 can't seem to find it:
 
 You want to apt-get build-dep libpam-sfs that will install sfs-dev among
 other things.

Thanks, but everything is already in place:

# apt-get build-dep libpam-sfs
Reading Package Lists... Done
Building Dependency Tree... Done
0 packages upgraded, 0 newly installed, 0 to remove and 3  not
upgraded.

I'm running plain dpkg-buildpackage in the libpam-sfs-0.2.2 dir,
i.e. with no -d switch (i.e. without suppressing warnings related to
Build-Depends:).


Massimiliano



Re: Using PAM with SFS

2002-09-30 Thread Daniel Kobras
tags 144857 + patch
thanks

Package: libpam-sfs
Version: 0.2.2
Followup-For: Bug #144857

On Mon, Sep 30, 2002 at 02:43:16PM +0200, Massimiliano Mirra wrote:
 Yes, non-US source is there now (that was the reason apt-get source
 libpam-sfs was not working in the first place).  The problem with
 libsfscrypt happens at configure time: the lib is there but configure
 can't seem to find it:

Apply the attached patch and run autogen.sh (automake and autoconf need
to be installed for this step).  Works for me.

Regards,

Daniel.

---[snip]---

--- configure.in.orig   2001-06-19 19:30:18.0 +0200
+++ configure.in2002-09-30 15:36:48.0 +0200
@@ -40,12 +40,16 @@
 AC_DEFINE_UNQUOTED(SFSKEY_PATH, $SFSKEY_PATH)
 
 dnl Checks for libraries.
-AC_CHECK_LIB(gmp3, main,, AC_MSG_ERROR(gmp3 library not found))
+AC_LANG(C++)
+AC_CHECK_LIB(gmp, main,, AC_MSG_ERROR(gmp library not found))
 AC_CHECK_LIB(stdc++,   main,, AC_MSG_ERROR(stdc++ library not found))
+AC_CHECK_LIB(resolv,   main,, AC_MSG_ERROR(resolv library not found))
+AC_CHECK_LIB(nsl,   main,, AC_MSG_ERROR(nsl library not found))
 MY_LIB_PATH(sfsmisc,   $sfs_libdir, , AC_MSG_ERROR(sfs libraries not found))
-AC_CHECK_LIB(sfscrypt, main,, AC_MSG_ERROR(sfscrypt library not found))
+dnl Funny. libarpc and libasync depend on each other.
+AC_CHECK_LIB(arpc, main,, AC_MSG_ERROR(arpc library not found), 
[-lasync])
 AC_CHECK_LIB(async,main,, AC_MSG_ERROR(async library not found))
-AC_CHECK_LIB(arpc, main,, AC_MSG_ERROR(arpc library not found))
+AC_CHECK_LIB(sfscrypt, main,, AC_MSG_ERROR(sfscrypt library not found))
 AC_CHECK_LIB(svc,  main,, AC_MSG_ERROR(svc library not found))
 AC_CHECK_LIB(sfsmisc,  main,, AC_MSG_ERROR(sfsmisc library not found))
 
--- Makefile.am.orig2001-06-19 19:30:18.0 +0200
+++ Makefile.am 2002-09-30 15:50:18.0 +0200
@@ -10,10 +10,10 @@
$(LINK.o) -shared $(DEFS) $^ -Wl,-dn $(LIBS) -Wl,-dy -o $@
 
 %.lo: %.c
-   $(COMPILE.c) $ $(DEFS) -fpic -DPIC -o $@ 
+   $(COMPILE.c) $ $(DEFAULT_INCLUDES) $(DEFS) -fpic -DPIC -o $@ 
 
 %.lo: %.C
-   $(COMPILE.C) $ $(DEFS) -fpic -DPIC -o $@ 
+   $(COMPILE.C) $ $(DEFAULT_INCLUDES) $(DEFS) -fpic -DPIC -o $@ 
 
 maintainer-clean-local:
rm -f Makefile.in aclocal.m4 configure