Re: [PHP] kadm5 Library
> Did you try to install krb5-devel. Try "yum search krb5" to > see all the available packages that CentOS includes. In > case your yum doesn't find something you may add more > repos like Dag's: I did. The krb5-devel package is the one that installed krb5/krb5.h, but as I mentioned that seems to be a different version than the one that the PECL library expects. I've used Dag's repository before, but as you pointed out, it doesn't contain this package. > What you need is to find a kerberos rpm to include development > header in order to compile it your self. I thought about grabbing the header from another OS, but I'm concerned about incompatibilities. For now, I'm just using the expect library and running kadmin.local via sudo as needed. It's clunky, but it's working. :) Thanks for all your help! Tim Gustafson BSOE Webmaster UC Santa Cruz t...@soe.ucsc.edu 831-459-5354 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] kadm5 Library
Sorry, I could have been a little clearer: I can't recompile PHP. It's against our general policy to use custom compiled software on the grounds that there are too many sysadmins managing a lot of these machines and if some software is custom compiled and others not, it gets too confusing when it comes to keeping the machines updated and patched. We're talking a dozen sysadmins and hundreds of machines here. :) That is understandable. No harm is done and sorry for the late reply. I did try to compile the PECL library by specifying the path to the Kerberos libraries as you suggested, but it turns out that the normal version of Kerberos seems to have, among other things, a "krb5/admin.h" header file, and the one that comes with CentOS has "krb5/krb5.h" instead, and even when I change the source code to use "krb5/krb5.h", it still throws about 50 errors talking about missing functions and re-defined functions and so on. Did you try to install krb5-devel. Try "yum search krb5" to see all the available packages that CentOS includes. In case your yum doesn't find something you may add more repos like Dag's: http://dag.wieers.com/ It is just an rpm that updates the systems repositories that I find very useful. I'm thinking that the problem is that the PECL module was designed to work with one version of the Kerberos library and CentOS provides a different version. I guess I was really asking if anyone had any diffs or anything I could apply to the PECL module to make it compile on a CentOS machine. Or perhaps is there a Yum repository somewhere that I could use to get a version of the PECL module precompiled for CentOS? I am not aware if there is a pre-compiled package for kerberos but Dag's repo doesn't provide it AFAIK. It does provide some other pecl extensions like php-pecl-fileinfo etc but not this one. What you need is to find a kerberos rpm to include development header in order to compile it your self. I should point out that the Perl Kerberos module did install and compile successfully on this machine, so I'm fairly sure that Kerberos is itself working. Tim Gustafson BSOE Webmaster UC Santa Cruz t...@soe.ucsc.edu 831-459-5354 Well let me tell what I did: I have installed this that is needed for the package to work: http://dag.wieers.com/rpm/packages/re2c/re2c-0.12.0-1.el5.rf.i386.rpm I have downloaded the source and tried to compile it with: ./configure --with-kadm5=/usr/include/krb5 But the compilation failed. My installed packages are: krb5-server-1.6.1-25.el5_2.2 krb5-libs-1.6.1-25.el5_2.2 krb5-workstation-1.6.1-25.el5_2.2 pam_krb5-2.2.14-1.el5_2.1 krb5-devel-1.6.1-25.el5_2.2 And then I run into this: http://pecl.php.net/bugs/bug.php?id=15196&thanks=3 I have already reported the bug and lets hope it will get fixed. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] kadm5 Library
Sorry, I could have been a little clearer: I can't recompile PHP. It's against our general policy to use custom compiled software on the grounds that there are too many sysadmins managing a lot of these machines and if some software is custom compiled and others not, it gets too confusing when it comes to keeping the machines updated and patched. We're talking a dozen sysadmins and hundreds of machines here. :) I did try to compile the PECL library by specifying the path to the Kerberos libraries as you suggested, but it turns out that the normal version of Kerberos seems to have, among other things, a "krb5/admin.h" header file, and the one that comes with CentOS has "krb5/krb5.h" instead, and even when I change the source code to use "krb5/krb5.h", it still throws about 50 errors talking about missing functions and re-defined functions and so on. I'm thinking that the problem is that the PECL module was designed to work with one version of the Kerberos library and CentOS provides a different version. I guess I was really asking if anyone had any diffs or anything I could apply to the PECL module to make it compile on a CentOS machine. Or perhaps is there a Yum repository somewhere that I could use to get a version of the PECL module precompiled for CentOS? I should point out that the Perl Kerberos module did install and compile successfully on this machine, so I'm fairly sure that Kerberos is itself working. Tim Gustafson BSOE Webmaster UC Santa Cruz t...@soe.ucsc.edu 831-459-5354 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] kadm5 Library
Hi, I'm running PHP on a CentOS 5.2 box and I'd like to get the kadm5 library to work. The documentation says that the package is both included by default and also available as a PECL module. The functions are not available in my base install (I'm using the PHP package from the CentOS repository). When I do a phpinfo() I do see that "--with-kerberos" was specified at compile time, but "--with-kadm5" was not, so I'm not sure if that was a typo on the part of the person who did the compilation or if there is something else that "--with-kerberos" does. Anyhow, I can't seem to get the PECL version to compile. I have the "krb5-devel" Yum package installed, but it always breaks with an error message that says: checking for kadm5 files in default path... not found configure: error: Please reinstall the kadm5 distribution ERROR: `/tmp/tmp7fT8eC/kadm5-0.2.3/configure' failed It appears to be looking for "krb5/admin.h" which doesn't exist on CentOS even with the "krb5-devel". Instead, CentOS seems to have a "krb5/krb5.h" which does contain some valid Kerberos headers, but when I modify the PECL library to use that file instead of "admin.h", I do get a bit further but then get two or three screens full of "error: 'KRB5_KDB_DISALLOW_TGT_BASED' undeclared" type errors. So, I guess my question is has anyone had any luck getting this library to compile and function on CentOS 5.2? Can anyone point me in the right direction as far as getting this library to work? Thanks for your help! Tim Gustafson BSOE Webmaster UC Santa Cruz t...@soe.ucsc.edu 831-459-5354 I have never used the kadm5 functions before so this is a guess. In order for PHP to compile with kadm5 you need to compile and install the kadm5 lib first and then go and compile PHP using the "--with-kadm5=/path" compile option. You need this in order to tell PHP where the library lives in the system in order to build the proper interface for you that includes the functions. This of course is the proper way to do things. In your case you can probably install krb5 and try to compile PHP from source since with the "--with-kadm5=/path" option in order to install things the right way since I don't think that the php rpm includes that option in CentOS 5.2. Another way (since pecl fails) is to tell pecl where the library lives. You can do that by downloading the pecl module and instead of using the pecl binary just try to compile it yourself with the usual way: cd /tmp/ wget http://pecl.php.net/get/kadm5-0.2.3.tgz tar zxf kadm5-0.2.3.tgz cd kadm5-0.2.3 phpize ./configure (you have to make ./configure --help to see how to configure where the library is assuming something like --with-krb5=/path/ or --with-libdir=/path/) make make install You can find the extension here: http://pecl.php.net/package/kadm5 -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] kadm5 Library
Hi, I'm running PHP on a CentOS 5.2 box and I'd like to get the kadm5 library to work. The documentation says that the package is both included by default and also available as a PECL module. The functions are not available in my base install (I'm using the PHP package from the CentOS repository). When I do a phpinfo() I do see that "--with-kerberos" was specified at compile time, but "--with-kadm5" was not, so I'm not sure if that was a typo on the part of the person who did the compilation or if there is something else that "--with-kerberos" does. Anyhow, I can't seem to get the PECL version to compile. I have the "krb5-devel" Yum package installed, but it always breaks with an error message that says: checking for kadm5 files in default path... not found configure: error: Please reinstall the kadm5 distribution ERROR: `/tmp/tmp7fT8eC/kadm5-0.2.3/configure' failed It appears to be looking for "krb5/admin.h" which doesn't exist on CentOS even with the "krb5-devel". Instead, CentOS seems to have a "krb5/krb5.h" which does contain some valid Kerberos headers, but when I modify the PECL library to use that file instead of "admin.h", I do get a bit further but then get two or three screens full of "error: 'KRB5_KDB_DISALLOW_TGT_BASED' undeclared" type errors. So, I guess my question is has anyone had any luck getting this library to compile and function on CentOS 5.2? Can anyone point me in the right direction as far as getting this library to work? Thanks for your help! Tim Gustafson BSOE Webmaster UC Santa Cruz t...@soe.ucsc.edu 831-459-5354 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php