I'm new to Samba, but have been reading manuals, faq's, and list
archives and
have been googling for a week. I can't figure out what's going on.
Here's the
situation:
I want to use winbindd to unify authentication for the users who have both 
domain accounts and linux accounts and who use pop3/imap on my Linux SMTP/POP 
server.
Security is set to ADS, and I have PAM authentication functioning, but a 
feature I was depending on isn't working. I've tried both "username
map"
and "username map script" to map AD usernames to unix usernames. I was
hoping
that either one of those options would provide me the glue to attach one to 
the other. Winbindd doesn't use those options, though.
Here's a little "username map script" that I cooked up to check to
see if it
was being called.
#!/usr/bin/perl
if ($ARGV[0] =~ /Foo Bar$/i) #checks for user "Foo Bar" with or
without domain
{
  print "foobarbaz"; #prints unix username
}
open FOO, ">>/tmp/foo.log";
$date = `date`;
$date =~ s/[\r\n\f]+//g;
print FOO "$date Ping!\n";
close FOO;
/tmp/foo.log records no execution requests...
Help!
CG
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 CG wrote:> I'm new to Samba, but have been reading manuals, faq's, and > list archives and have been googling for a week. I can't > figure out what's going on. Here's the situation: > > I want to use winbindd to unify authentication for the users > who have both domain accounts and linux accounts and > who use pop3/imap on my Linux SMTP/POP server. > > Security is set to ADS, and I have PAM authentication > functioning, but a feature I was depending on isn't working. I've > tried both "username map" and "username map script" to map > AD usernames to unix usernames. I was hoping that either one > of those options would provide me the glue to attach one to > the other. Winbindd doesn't use those options, though.The "username map" parameters are only used by smbd and are not related to winbindd or pam_winbind at all. cheers, jerry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGK0kAIR7qMdg1EfYRAiweAKDjrOadGIdpRCCVOvaMRDcNFsupHgCggyMB MRGwv+VqQyYHksY+8O4QsEE=WG8p -----END PGP SIGNATURE-----
Gerald (Jerry) Carter <jerry <at> samba.org> writes:> The "username map" parameters are only used by smbd and > are not related to winbindd or pam_winbind at all.That would explain the not-running problem. :) That keeps me from chasing my tail. Thank you!