From: cajus Date: Wed, 23 Apr 2008 14:55:28 +0000 (+0000) Subject: Added set_password X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dca5ad4084de8bcd9f73608f8987ec2aecf76ccf;p=gosa.git Added set_password git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10661 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/server/events/krb5.pm b/gosa-si/server/events/krb5.pm index 37a4f922a..a34847599 100644 --- a/gosa-si/server/events/krb5.pm +++ b/gosa-si/server/events/krb5.pm @@ -24,6 +24,7 @@ my @events = ( "answer_krb5_create_policy", "answer_krb5_modify_policy", "answer_krb5_del_policy", + "answer_krb5_set_password", ); @EXPORT = @events; @@ -49,6 +50,12 @@ sub krb5_list_principals { return ( $msg ); } +sub krb5_set_password { + my ($msg, $msg_hash, $session_id) = @_; + $msg =~ s/gosa_krb5/krb5/g; + return ( $msg ); +} + sub krb5_create_principal { my ($msg, $msg_hash, $session_id) = @_; @@ -172,4 +179,10 @@ sub answer_krb5_del_policy { return ($msg); } +sub answer_krb5_set_password { + my ($msg, $msg_hash, $session_id) = @_ ; + $msg =~ s/\S+<\/target>/GOSA<\/target>/g; + return ($msg); +} + 1;