kadm5_get_principals -- Gets all principals from the Kerberos database.
Description
Returns array of principals on success, or FALSE on failure.
kadm5_get_principals()
returns an array containing the principals's names.
Example 1. KADM5 extension overview example <?php
$handle = kadm5_init_with_password("afs-1", "GONICUS.LOCAL", "admin/admin", "password");
print "<h1>get_principals</h1>\n";
$principals = kadm5_get_principals($handle);
for( $i=0; $i<count($principals); $i++)
print "$principals[$i]<br>\n";
kadm5_destroy($handle);
?> |
|