Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Samba and Win9x: user is passed all upper-case and not authenticated #647

Closed
michaelrsweet opened this issue Mar 23, 2004 · 2 comments
Closed
Labels
enhancement New feature or request
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.1.20
CUPS.org User: zoltan.sekeres.caseconsult

We use CUPS in conjunction with Samba 3.0.2 and Win9x (sigh). All users are required to be member of a specific group to be able to print.

As of the current CVS version (1.227) of scheduler/ipp.c a case sensitive check of the correct group membership is performed in function check_quotas (line 1976):

      for (j = 0; grp->gr_mem[j]; j ++)
        if (!strcmp(username, grp->gr_mem[j]))
          break;

Unfortunately Win9x reports the username all uppercase, so the above check fails. To correct this the group membership should be checked case insensitive:

      for (j = 0; grp->gr_mem[j]; j ++)
        if (!strcasecmp(username, grp->gr_mem[j]))
          break;

A few lines below there is already a case insensitive username check, so this should be ok. I've already applied the change successfully on our server.

It would be great if this change could be applied to the official version. Migration projects with Win9x boxes would benefit from this.

Thanks,
Zoltan

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

We will look into this, and if it does not cause problems elsewhere will add this to 1.1.21 and 1.2.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in CVS - the anonymous CVS repository will be updated at midnight EST.

@michaelrsweet michaelrsweet added the enhancement New feature or request label Mar 17, 2016
@michaelrsweet michaelrsweet added this to the Stable milestone Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant