ports/156336: netatalk with PAM broken since 2.0.4

Andrea Venturoli ml at netfence.it
Mon Apr 11 18:00:23 UTC 2011


>Number:         156336
>Category:       ports
>Synopsis:       netatalk with PAM broken since 2.0.4
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 11 18:00:22 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Andrea Venturoli
>Release:        7.3/amd64
>Organization:
NetFence
>Environment:
FreeBSD xxxxx.xxxxxxxx.xx 7.3-RELEASE-p4 FreeBSD 7.3-RELEASE-p4 #1: Wed Dec 15 09:48:14 CET 2010     root at xxxxx.xxxxxxxx.xx:/usr/obj/usr/src/sys/XXXXX  amd64

>Description:
Since version 2.0.4 afpd won't authenticate users through PAM.
For details, see:
http://docs.freebsd.org/cgi/getmsg.cgi?fetch=403710+0+archive/2010/freebsd-ports/20100221.freebsd-ports

Problem seems to be afpd is not linked against libpam.
>How-To-Repeat:
Compile net/netatalk with PAM knob; set up afpd to authenticate via pam_smb.
See authentication fail.
>Fix:
Dirty fix:

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

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

To:
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...



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list