83 if (!extension_loaded(
"kadm5")) {
84 throw new KumbiaException(
"Debe cargar la extensi�n de php llamada kadm5");
87 foreach (array(
'server',
'username',
'principal',
'password') as $param) {
88 if (isset($extra_args[$param])) {
89 $this->$param = $extra_args[$param];
91 throw new KumbiaException(
"Debe especificar el par�metro '$param' en los par�metros");
102 if (!$this->resource) {
105 $identity = array(
"username" => $this->username,
"realm" => $this->username);
116 $this->resource = kadm5_init_with_password($this->server, $this->realm, $this->principal, $this->password);
117 if ($this->resource ===
false) {
130 if (!$this->resource) {
133 return kadm5_get_principals($this->resource);
142 if (!$this->resource) {
145 return kadm5_get_policies($this->resource);
154 if ($this->resource) {
155 kadm5_destroy($this->resource);
166 foreach (array(
'server',
'principal',
'username',
'password') as $param) {
167 if (isset($extra_args[$param])) {
168 $this->$param = $extra_args[$param];