Cyrus SASL 2.1.17 and realms

2004-01-19 Thread dimon
Hi everybody, I'm using Cyrus SASL 2.1.17 + PAM + pam-pgsql. When I used v 2.1.15 before, I had user login as [EMAIL PROTECTED] in pam-pgsql module. Right now SASL devides it to username and realm. I can still get username (without @domain part) with pam_get_user() function, but not realm any

Re: Cyrus SASL 2.1.17 and realms

2004-01-19 Thread Igor Brezac
On Mon, 19 Jan 2004 [EMAIL PROTECTED] wrote: Hi everybody, I'm using Cyrus SASL 2.1.17 + PAM + pam-pgsql. When I used v 2.1.15 before, I had user login as [EMAIL PROTECTED] in pam-pgsql module. Right now SASL devides it to username and realm. I can still get username (without @domain part)

Re: Cyrus SASL 2.1.17 and realms

2004-01-19 Thread dimon
Quoting Igor Brezac [EMAIL PROTECTED]: This may help: http://asg.web.cmu.edu/archive/message.php?mailbox=archive.cyrus- saslsearchterm=patchmsg=4669 Thank you very mach, I already did the same thing :-) I'm not sure if it's correct (I'm not C programmer), but I just added this: /* END

Re: Cyrus SASL 2.1.17 and realms

2004-01-19 Thread dimon
Quoting Igor Brezac [EMAIL PROTECTED]: Your check may fail if realm is NULL. Use if (realm *realm != '\0') { Thank you, that works grate now! Dmitry