[cups.general] CUPS ldap group authentication not working
Michael Sweet
msweet at apple.com
Sat Feb 13 12:54:53 PST 2010
On Feb 13, 2010, at 8:33 AM, John A. Sullivan III wrote:
> ...
> Thank you for such a swift reply. No, the groups are not duplicated. What should I look at next? Thanks - John
You can run cupsd with the LogLevel set to "debug2", which will yield lines with "cupsdCheckGroup" in the error_log file - verify that the username and group name are coming through properly.
If so, you could try a short program to verify that getgrnam returns something, e.g.:
#include <stdio.h>
#include <grp.h>
int main(void)
{
struct group *group = getgrnam("yourgroupname");
if (group)
{
int i;
printf("gr_name=\"%s\"\n", group->gr_name);
printf("gr_passwd=\"%s\"\n", group->gr_passwd);
printf("gr_gid=%d\n", (int)group->gr_gid);
puts("gr_mem=");
for (i = 0; group->gr_mem[i]; i ++)
printf(" \"%s\"\n", group->gr_mem[i]);
}
else
puts("NOT FOUND");
return (0);
}
___________________________________________________
Michael Sweet, Senior Printing System Engineer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cups.org/pipermail/cups/attachments/20100213/1344e3c6/attachment-0001.html>
More information about the cups
mailing list