Bug 148816 - print/cups-base: pam.d/cups getting wrong module while installation
Summary: print/cups-base: pam.d/cups getting wrong module while installation
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-21 11:20 UTC by O. Hartmann
Modified: 2011-03-09 05:41 UTC (History)
0 users

See Also:


Attachments
file.diff (403 bytes, patch)
2010-07-21 11:20 UTC, O. Hartmann
no flags Details | Diff
patch-data-cups.pam (300 bytes, text/plain)
2010-11-18 15:32 UTC, O. Hartmann
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2010-07-21 11:20:01 UTC
While printing/cups-base is installed and PAM is enabled, /usr/local/etc/pam.d/cups is fed with the wrong module (pam_unknown.so instead of pam_unix.so) for auth and account.

Fix: change /usr/local/etc/pam.d/cups towards usage of the right module in FreeBSD.

auth    required        pam_unix.so nodelay
account required        pam_unix.so


Add configure-option

--with-pam_module="pam_unix.so" 

to top-level Makefile of the port

Patch attached with submission follows:
How-To-Repeat: Install printing/cups-base
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-07-21 11:21:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dinoex

Fix synopsis and assign.
Comment 2 mwisnicki+freebsd 2010-08-09 19:24:30 UTC
That's wrong, it should include one of system services, 'system' is
probably a best choice:

# etc/pam.d/cups
auth include system
account include system
Comment 3 Dirk Meyer freebsd_committer freebsd_triage 2010-08-13 11:20:37 UTC
State Changed
From-To: open->suspended
Comment 4 Dirk Meyer freebsd_committer freebsd_triage 2010-08-13 11:24:45 UTC
State Changed
From-To: suspended->feedback


Please submit an updated patch.
Comment 5 O. Hartmann 2010-11-18 15:32:29 UTC
Attached, you'll find another patch with the prior suggested patches. 
After a port update the authetication was rendered unusable again. 
Attached another patch file, which worked well for my purposed, please 
audit.

O.
Comment 6 dfilter service freebsd_committer freebsd_triage 2010-11-19 07:22:47 UTC
dinoex      2010-11-19 07:22:43 UTC

  FreeBSD ports repository

  Modified files:
    print/cups-base      Makefile 
  Log:
  - fix pam module
  PR:             148816
  Submitted by:   O. Hartmann
  
  Revision  Changes    Path
  1.149     +2 -0      ports/print/cups-base/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 7 Dirk Meyer freebsd_committer freebsd_triage 2010-11-19 08:06:09 UTC
State Changed
From-To: feedback->patched

committed, please test!
Comment 8 Dirk Meyer freebsd_committer freebsd_triage 2011-03-09 05:41:13 UTC
State Changed
From-To: patched->closed

no problems reported