Bug 156336 - net/netatalk with PAM broken since 2.0.4
Summary: net/netatalk with PAM broken since 2.0.4
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: Joe Marcus Clarke
Depends on:
Reported: 2011-04-11 19:00 UTC by ml
Modified: 2011-05-09 00:10 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description ml 2011-04-11 19:00:22 UTC
Since version 2.0.4 afpd won't authenticate users through PAM.
For details, see:

Problem seems to be afpd is not linked against libpam.


Dirty fix:

cd /usr/ports/net/netatalk
make configure
${EDITOR} work/netatalk-2.1.5/etc/afpd/Makefile

afpd$(EXEEXT): $(afpd_OBJECTS) $(afpd_DEPENDENCIES)
        @rm -f afpd$(EXEEXT)
        $(afpd_LINK) $(afpd_OBJECTS) $(afpd_LDADD) $(LIBS)

afpd$(EXEEXT): $(afpd_OBJECTS) $(afpd_DEPENDENCIES)
        @rm -f afpd$(EXEEXT)
        $(afpd_LINK) $(afpd_OBJECTS) $(afpd_LDADD) $(LIBS) -lpam
Proceed with make, make install, etc...

Of course there must be some more elegant solution, but I'm not that expert...
How-To-Repeat: Compile net/netatalk with PAM knob; set up afpd to authenticate via pam_smb.
See authentication fail.
Comment 1 Mark Linimon freebsd_committer 2011-04-12 08:19:27 UTC
Responsible Changed
From-To: freebsd-ports-bugs->marcus

Fix synopsis and assign.
Comment 2 dfilter service freebsd_committer 2011-05-09 00:08:30 UTC
marcus      2011-05-08 23:08:21 UTC

  FreeBSD ports repository

  Modified files:
    net/netatalk         Makefile 
  Added files:
    net/netatalk/files   patch-etc_apfd_Makefile.in 
  Fix linkage when PAM support is enabled.  This isn't on by default, but I
  think it's a common enough option that I'm bumping PORTREVISION.
  PR:             156336
  Revision  Changes    Path
  1.95      +1 -0      ports/net/netatalk/Makefile
  1.1       +11 -0     ports/net/netatalk/files/patch-etc_apfd_Makefile.in (new)
cvs-all@freebsd.org mailing list
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Joe Marcus Clarke freebsd_committer 2011-05-09 00:08:37 UTC
State Changed
From-To: open->closed

Fixed.  Thanks for reporting.