KADM5
kadm5
&reftitle.intro;
These package allows you to access Kerberos V administration servers.
You can create, modify, and delete Kerberos V principals and policies.
More information about Kerberos can be found at &url.kerberos.info;.
Documentation for Kerberos and KADM5 can be found at &url.kerberos.docs;.
&reference.kadm5.constants;
&reftitle.examples;
This simple example shows how to connect, query, print
resulting principals and disconnect from a KADM5 database.
KADM5 extension overview example
get_principals\n";
$principals = kadm5_get_principals($handle);
for( $i=0; $i\n";
print "get_policies
\n";
$policies = kadm5_get_policies($handle);
for( $i=0; $i\n";
print "get_principal burbach@GONICUS.LOCAL
\n";
$options = kadm5_get_principal($handle, "burbach@GONICUS.LOCAL" );
$keys = array_keys($options);
for( $i=0; $i\n";
}
$options = array(KADM5_PRINC_EXPIRE_TIME => 0);
kadm5_modify_principal($handle, "burbach@GONICUS.LOCAL", $options);
kadm5_destroy($handle);
?>
]]>
&reference.kadm5.functions;