First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 35059
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: PAM Gentoo Team <pam-bugs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Rens <lawkie@despammed.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
pam_krb5-1.0-pam_krb5_auth.c.diff Patch to include errno.h in pam_krb5_auth.c patch Wes Kurdziolek 2004-01-03 14:59 0000 344 bytes Details | Diff
pam_krb5-1.0-support.c.diff Patch to include errno.h in support.c patch Wes Kurdziolek 2004-01-03 15:00 0000 344 bytes Details | Diff
pam_krb5-1.0.ebuild.patch Patch to fix up the ebuild patch Wes Kurdziolek 2004-01-03 15:01 0000 274 bytes Details | Diff
pam_krb5-1.0.ebuild.patch Correct ebuild patch patch Wes Kurdziolek 2004-01-03 15:35 0000 324 bytes Details | Diff
pam_krb5-1.0-r1.ebuild Updated ebuild that includes epatch line for patch to correct compile failure text/plain Brandon Edens 2004-06-09 12:35 0000 810 bytes Details
pam_krb5-1.0-gentoo-fix.diff Patch that adds missing headers to support.c and pam_krb5_auth.c patch Brandon Edens 2004-06-09 12:37 0000 575 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 35059 depends on: Show dependency tree
Bug 35059 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-12-04 07:42 0000
I have a freshly installed Gentoo machine. I just installed OpenLDAP, Samba3, 
Kerebos5 (libs and tools), lsdap and nss pam modules and now I want install the 
kerebos5 pam module. Unfortunately it fails, see my output. I dont know if I am 
making a mistake but I decided to report it anyways. Greets and thanks!


Reproducible: Always
Steps to Reproduce:
1. Install Nentoo :)
2. Install OpenLDAP and Samba3
3. Emerge pam_krb5-1.0
Actual Results:  
This happened:

!!! ERROR: app-crypt/pam_krb5-1.0 failed.
!!! Function src_compile, Line 20, Exitcode 2
!!! (no error message)


:)

Expected Results:  
Build a pam module for Kerebos5


Utopia DEV # emerge -s pam_krb5
Searching...
[ Results for search key : pam_krb5 ]
[ Applications found : 1 ]

*  app-crypt/pam_krb5
      Latest version available: 1.0
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 12 kB
      Homepage:    http://www.fcusack.com/
      Description: Pam module for MIT Kerberos V


Utopia DEV # emerge pam_krb5
Calculating dependencies ...done!
>>> emerge (1 of 1) app-crypt/pam_krb5-1.0 to /
>>> Downloading http://gentoo.oregonstate.edu/distfiles/pam_krb5-1.0.tar.gz
--02:47:13--  http://gentoo.oregonstate.edu/distfiles/pam_krb5-1.0.tar.gz
           => `/usr/portage/distfiles/pam_krb5-1.0.tar.gz'
Resolving gentoo.oregonstate.edu... 128.193.0.3
Connecting to gentoo.oregonstate.edu[128.193.0.3]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13,107 [application/x-tar]

100%
[===============================================================================
==================================================>] 13,107        40.83K/s

02:47:14 (40.61 KB/s) - `/usr/portage/distfiles/pam_krb5-1.0.tar.gz' saved 
[13107/13107]

>>> md5 src_uri ;-) pam_krb5-1.0.tar.gz
>>> Unpacking source...
>>> Unpacking pam_krb5-1.0.tar.gz to /var/tmp/portage/pam_krb5-1.0/work
>>> Source unpacked.
 * Applying pam_krb5-1.0-
gentoo.diff...                                                                  
                                                              [ ok ]
gcc -c -O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -
I/usr/include pam_krb5_auth.c
pam_krb5_auth.c: In function `pam_sm_authenticate':
pam_krb5_auth.c:72: warning: passing arg 2 of `pam_get_user' from incompatible 
pointer type
pam_krb5_auth.c:77: warning: passing arg 3 of `pam_get_item' from incompatible 
pointer type
pam_krb5_auth.c:129: warning: passing arg 3 of `pam_get_item' from incompatible 
pointer type
pam_krb5_auth.c:148: warning: passing arg 3 of `pam_get_item' from incompatible 
pointer type
pam_krb5_auth.c:166: warning: passing arg 3 of `pam_get_item' from incompatible 
pointer type
pam_krb5_auth.c: In function `pam_sm_setcred':
pam_krb5_auth.c:291: warning: assignment discards qualifiers from pointer 
target type
pam_krb5_auth.c:295: warning: passing arg 3 of `pam_get_item' from incompatible 
pointer type
pam_krb5_auth.c:300: warning: passing arg 3 of `pam_get_item' from incompatible 
pointer type
pam_krb5_auth.c:418: `errno' undeclared (first use in this function)
pam_krb5_auth.c:418: (Each undeclared identifier is reported only once
pam_krb5_auth.c:418: for each function it appears in.)
make: *** [pam_krb5_auth.o] Error 1

!!! ERROR: app-crypt/pam_krb5-1.0 failed.
!!! Function src_compile, Line 20, Exitcode 2
!!! (no error message)

------- Comment #1 From Shawn Leas 2003-12-16 07:14:08 0000 -------
One hack is to temporarily place "#include <errno.h>" in /usr/include/stdio.h.

Don't leave it there, though.

------- Comment #2 From Wes Kurdziolek 2004-01-03 14:59:53 0000 -------
Created an attachment (id=23104) [edit]
Patch to include errno.h in pam_krb5_auth.c

This fixes the indicated problem: failure to include errno.h in
pam_krb5_auth.c. Two more patches are forthcoming; one for support.c which is
also missing errno.h, and one for the ebuild to put the patches in place.

------- Comment #3 From Wes Kurdziolek 2004-01-03 15:00:34 0000 -------
Created an attachment (id=23105) [edit]
Patch to include errno.h in support.c

As promised, patch to include errno.h in support.c

------- Comment #4 From Wes Kurdziolek 2004-01-03 15:01:16 0000 -------
Created an attachment (id=23106) [edit]
Patch to fix up the ebuild

As promised, patch to fix the 1.0 ebuild

------- Comment #5 From Wes Kurdziolek 2004-01-03 15:35:06 0000 -------
Created an attachment (id=23112) [edit]
Correct ebuild patch

Old ebuild patch was incorrect from an earlier version of my fix; this is
correct

------- Comment #6 From Michael Farnbach 2004-02-17 21:03:25 0000 -------
perchance we should just move to pam_krb5 1.3? I compiled it and it works where
the 1.0 did not (even after the patch was applied).

------- Comment #7 From Michael Farnbach 2004-02-17 21:04:06 0000 -------
perchance we should just move to pam_krb5 1.3? I compiled it and it works where
the 1.0 did not (even after the patch was applied).

------- Comment #8 From Guy Van Sanden 2004-02-29 13:27:07 0000 -------
It seems to compile for me (with the patches)

------- Comment #9 From David Dynerman 2004-03-02 09:43:06 0000 -------
The posted patches and ebuild worked fine for me too.

What's the hold up guys?  This is a major problem for anyone building a site that uses PAM.

It shouldn't take 2 months to get a completed ebuild into the distribution -- this should get added ASAP.

------- Comment #10 From Heinrich Wendel (RETIRED) 2004-03-15 12:03:14 0000 -------
*** Bug 28810 has been marked as a duplicate of this bug. ***

------- Comment #11 From tormen 2004-04-07 02:45:45 0000 -------
Hi.

I am new to gentoo and have (nearly) the same problem - just for me it is line 23 instead of 20 ?!:

pam_krb5_auth.c:418: error: `errno' undeclared (first use in this function)
pam_krb5_auth.c:418: error: (Each undeclared identifier is reported only once
pam_krb5_auth.c:418: error: for each function it appears in.)
make: *** [pam_krb5_auth.o] Error 1

!!! ERROR: app-crypt/pam_krb5-1.0 failed.
!!! Function src_compile, Line 23, Exitcode 2
!!! (no error message)

---------

So why are these patches available not added to the gentoo emerge package?!
Or the other way round: When will they be added?
And until then everyone has to apply the patches here handish by themselves?!

Greetings, tormen.

------- Comment #12 From Scott Beck 2004-05-27 01:01:20 0000 -------
more than 5 months and nothing has been done....

------- Comment #13 From Brandon Edens 2004-06-09 12:35:39 0000 -------
Created an attachment (id=32991) [edit]
Updated ebuild that includes epatch line for patch to correct compile failure

Features an epatch line to apply a fix to files support.c and pam_krb5_auth
that prevents pam_krb5 from compiling.
Brandon

------- Comment #14 From Brandon Edens 2004-06-09 12:37:34 0000 -------
Created an attachment (id=32992) [edit]
Patch that adds missing headers to support.c and pam_krb5_auth.c

This is the patch used by the pam_krb5-1.0-r1.ebuild.

------- Comment #15 From David Dynerman 2004-07-15 12:12:14 0000 -------
What is the hold up here?

I did an emerge on pam_krb5 on ppc, and it STILL has the SAME BUG.

Common Gentoo devs - a patch has been posted, tested and found to be working...why is this taking so long to integerate -- 7 months now???

This is ridiculous - either integrate the patch or let us know how we can contribute it to the main tree.  Your users are doing everything they can to help Gentoo's development, but when stuff like this just sits around it's very frustrating.

------- Comment #16 From Martin Schlemmer (RETIRED) 2004-07-15 12:49:27 0000 -------
Done.

------- Comment #17 From Robin Johnson 2004-07-15 13:46:17 0000 -------
sorry about the delay, but very few of us do anything with kerberos, and so
properly testing it so we can put it in is very hard. I believe we have only
one or two devs that do anything with kerberos, and more devs there wouldn't
hurt i think.

------- Comment #18 From Jose Gonzalez Gomez 2004-07-16 01:13:06 0000 -------
Could you please take a look at http://bugs.gentoo.org/show_bug.cgi?id=51837 ?
It's also related to Kerberos and it's been almost two months since it was
opened.

By the way, I'm just curious about this... from what I've been reading it seems
that the so called LDAPv3 (Kerberos for authentication+LDAP for authorization
information+SASL authentication to LDAP+DIGEST MD5 mandatory mechanism) is the
sensible way to go when setting up a central authentication and authorization
server, with centralized user management, for installations with more than a
few users and/or machines. That's why I tried pam_krb5. But from what you tell
us, it seems that Kerberos doesn't have that much attention from the
developers.

I'm trying to do Gentoo for a living and from my point of view things like
Kerberos are very important if you want to sell Gentoo to a medium/big sized
company. So I think details like this are the difference that could make Gentoo
become a possible corporate solution, or make it a toy with relative spreading
due to its improved performance and ease of management thanks to portage.

Please take this as constructive criticism from somebody who would like to make
Gentoo even better than it is.

By the way, I'm working in a howto about this issue (right now in spanish). If
there is enough interest I would be happy to donate it to the Gentoo
documentation, if that helps to have more users/devs involved in this.

Best regards

------- Comment #19 From Robin Johnson 2004-07-16 01:39:34 0000 -------
jose: it's possible to mix and match ldap configurations to suit your
environment. as an example, at work (I do gentoo for money too) my setup is
pure LDAPv3, all running over SSL/TLS. pam_ldap and nss_ldap provide all the
data needed, incl. nfs automounts (for home directories). My ldap also supplies
data to Samba as a PDC + fileserver for windows.

This environment runs MacOSX, SGI Irix, Windows XP/2K, FreeBSD, and multiple
distributions of Linux (no fewer than 6 distinct flavours at last count).

------- Comment #20 From Jose Gonzalez Gomez 2004-07-16 02:01:16 0000 -------
Robin,

I first went that way, using pam_ldap/nss_ldap, but then I found about Kerberos. In theory Kerberos/LDAP (pam_krb5/nss_ldap) can provide single sign-on, and that's why I gave a try to it. I must say I'm quite new to linux/unix admin so I'm exploring all these posibilities so I can offer an informed decission to any possible client.

By the way... maybe we are going a bit off topic? Maybe we could take this to private or gentoo-user/gentoo-dev?

First Last Prev Next    No search results available      Search page      Enter new bug