Re: krb5 with anonymous kinit, "Cannot allocate memory"

2013-10-11 Thread Greg Hudson
On 10/11/2013 11:54 PM, James Croall wrote: > AHA! I must have accidentally set the certificate to expire in a month > rather than a year. Approximate times line up. Reasonable user error. Very > poor error reporting though! I believe I improved the error reporting for this case in 1.11: https:

Re: krb5 with anonymous kinit, "Cannot allocate memory"

2013-10-11 Thread James Croall
Some sleuthing and adding DEBUG to pkinit.so reveals: pkinit_find_realm_context: returning context at 0x20108c0 for realm 'TRIAL.COVERITY.COM' pkinit_return_padata: entered! KDC picked etype = 18 received DH key delivery AS REQ building certificate chain cert = /C=US/ST=CA/L=San Francisco/O=Coveri

Re: krb5 with anonymous kinit, "Cannot allocate memory"

2013-10-11 Thread James Croall
Since discovering the symptoms it is reproducible every time - from systems that are able to kinit normally, it happens when I kinit -n. From the new systems that are trying to bootstrap, it happens when I kinit -n. Nothing has (to my knowledge) changed on these hosts. Indeed the KDC and normal Ke

Re: krb5 with anonymous kinit, "Cannot allocate memory"

2013-10-11 Thread Benjamin Kaduk
There are certainly some places in the pkinit code where the return value is initialized to ENOMEM which can get returned for failures other than memory allocation. It's hard to venture a guess as to which one(s) you are running into, though. Do you have a sense for how reproducible the proble

Re: krb5 with anonymous kinit, "Cannot allocate memory"

2013-10-11 Thread James Croall
Poking around with strace, and running krb5kdc with debug enabled, I see no smoking gun that there is a lack memory problem. Searching the kerberos mailing list and other forums I see similar reports, but no explanation of cause or possible solutions. A bit lost here. It was working great for a mo

Re: krb5 with anonymous kinit, "Cannot allocate memory"

2013-10-11 Thread James Croall
I should add, this error occurs when running kinit -n. I can still kinit as a user on an already setup host and get a TGT. - James James Croall | Senior Product Manager Coverity | 185 Berry Street | Suite 6500, Lobby 3 | San Francisco, CA 94107 Office: 415.694.5354 | Mobile: 202.246.6613 | jc

Re: Error messages

2013-10-11 Thread Greg Hudson
On 10/11/2013 03:17 PM, Rick van Rein (OpenFortress) wrote: >> Oct 11 06:46:54 krbmaxi kadmind[1798](Error): Required parameters in >> kdc.conf missing while initializing, aborting > > It would be useful to know what it is missing. I agree that this could be better. >> kdb5_ldap_util: Bad encryp

krb5 with anonymous kinit, "Cannot allocate memory"

2013-10-11 Thread James Croall
Hi All, Thanks again for the help getting anonymous kinit running! We have been running in production for over a month and things are going… well. Until today. This week a new error occurred on the KDC side: Oct 11 21:25:57 sso krb5kdc[10394](info): AS_REQ (4 etypes {18 17 16 23}) 10.0.1.13: N

Error messages

2013-10-11 Thread Rick van Rein (OpenFortress)
Hi, I've been trying to setup Kerberos on LDAP for several days now, on and off, and I have to say I'm a bit disappointment by the quality of the error messages, and what online searching for them yields. I find myself reading source code to see where errors come from. In the hope that it is

Re: 1.8 and 1.4 compatibility

2013-10-11 Thread Greg Hudson
On 10/11/2013 04:01 AM, Tom_Krauss wrote: > It is a fix condition that the KDCs will run MIT 1.4 since the OS vendor`s > release must be used. > The principal DB will be in LDAP. LDAP KDB support was added in 1.6, so unless your OS vendor backported support for it to 1.4 (which would not have bee

1.8 and 1.4 compatibility

2013-10-11 Thread Tom_Krauss
Hi, I am about to build up a backend for a Kerberos deployment. It is a fix condition that the KDCs will run MIT 1.4 since the OS vendor`s release must be used. The principal DB will be in LDAP. I am considering to use MIT 1.8 on the admin server since I would like to have certain features fro