I have a support issue. While Samba and POSIX are fine, Kerberos is a different story. I’m trying to add a hook for my LDAP Backended Kerberos KDC to add a principal. (I use Kerberos with eGroupware under Firefox, and it works.
But I need help. Here is what I have so far.
<?php
if((int)$GLOBALS['hook_values']['account_id'] > 0)
{
exec("logger adding user " . $GLOBALS['hook_values']['account_lid'] . " to kerberos");
exec( "kadmin -l add -r " . $GLOBALS['hook_values']['account_lid'] );
exec( "kadmin -l ext_keytab " . $GLOBALS['hook_values']['account_lid'] );
}
?>
Can you guys help improve this. Kerberos is practically mandatory now.