Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : KADM5 : kadm5_modify_principal

kadm5_modify_principal

Modifies a kerberos principal with the given parameters (PECL kadm5:0.2.3)
bool kadm5_modify_principal ( resource handle, string principal, array options )

Example 1108. Example of modifying principal

<?php

$handle
= kadm5_init_with_password("afs-1", "GONICUS.LOCAL", "admin/admin", "password");

$attributes = KRB5_KDB_REQUIRES_PRE_AUTH;
$options = array(KADM5_PRINC_EXPIRE_TIME => 3451234,
               
KADM5_POLICY => "gonicus",
               
KADM5_ATTRIBUTES => $attributes);

kadm5_modify_principal($handle, "burbach@GONICUS.LOCAL", $options);

kadm5_destroy($handle);
?>

Change Language


Follow Navioo On Twitter
kadm5_chpass_principal
kadm5_create_principal
kadm5_delete_principal
kadm5_destroy
kadm5_flush
kadm5_get_policies
kadm5_get_principal
kadm5_get_principals
kadm5_init_with_password
kadm5_modify_principal
eXTReMe Tracker