Dear all, I want to give access to a shared directory in a way that the user has to answer correctly to a trivia question, without the need of a username and password. Therefore I've created a PAM module to do just that. The module works fine with a simple command line application I've done to test it. But I can't get Samba to use it. - How can I configure Samba so that it uses my module? Thing you should know: - I don't want to have user accounts on the Samba server, - only Windows clients will access the shares, - I've installed Samba on a Ubuntu 7.04 via Synaptic (I assume that I comes with 'PAM enabled'). Thank you, Jacquet
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bruno Jacquet wrote:> Dear all, > > I want to give access to a shared directory in a way that the user has > to answer correctly to a trivia question, without the need of a > username and password. Therefore I've created a PAM module to do just > that. > The module works fine with a simple command line application I've done > to test it. But I can't get Samba to use it. > > - How can I configure Samba so that it uses my module?pam auth is ignored unless you include --with-pam at compile time and set 'encrypt passwords = no' in smb.conf. But do you need a PAM module for this? Just use the 'map to guest' option. cheers, jerry ====================================================================Samba ------- http://www.samba.org Centeris ----------- http://www.centeris.com "What man is a man who does not make the world better?" --Balian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGw2WqIR7qMdg1EfYRApSLAKC4shYqy1d38fbSALXJLu5tczIs2gCgqrP+ +HyCoJ1GMqBtxIxWZznDZAE=F+S4 -----END PGP SIGNATURE-----