KADM5_GET_PRINCIPALS(3) 1 KADM5_GET_PRINCIPALS(3)
kadm5_get_principals - Gets all principals from the Kerberos database
SYNOPSIS
array kadm5_get_principals (resource $handle)
DESCRIPTION
kadm5_get_principals(3) returns an array containing the principals's names.
PARAMETERS
o $handle
- A KADM5 handle.
RETURN VALUES
Returns array of principals on success or FALSE on failure.
EXAMPLES
Example #1
kadm5_get_principals(3) example
<?php
$handle = kadm5_init_with_password("afs-1", "GONICUS.LOCAL", "admin/admin", "password");
print "<h1>get_principals</h1>
";
foreach (kadm5_get_principals($handle) as $principal) {
echo "$principal<br />
";
}
kadm5_destroy($handle);
?>
SEE ALSO
kadm5_get_principal(3).
PHP Documentation Group KADM5_GET_PRINCIPALS(3)