From 63a3dc5fde5a3ceed4f03c19c5015aab19050bee Mon Sep 17 00:00:00 2001 From: till Date: Sat, 20 Mar 2010 14:20:01 +0000 Subject: moved plugins --- plugins/new_user_identity/new_user_identity.php | 47 ------------------------- 1 file changed, 47 deletions(-) delete mode 100644 plugins/new_user_identity/new_user_identity.php (limited to 'plugins/new_user_identity/new_user_identity.php') diff --git a/plugins/new_user_identity/new_user_identity.php b/plugins/new_user_identity/new_user_identity.php deleted file mode 100644 index 43eeae9dd..000000000 --- a/plugins/new_user_identity/new_user_identity.php +++ /dev/null @@ -1,47 +0,0 @@ -add_hook('create_user', array($this, 'lookup_user_name')); - } - - function lookup_user_name($args) - { - $rcmail = rcmail::get_instance(); - if ($addressbook = $rcmail->config->get('new_user_identity_addressbook')) { - $match = $rcmail->config->get('new_user_identity_match'); - $ldap = $rcmail->get_address_book($addressbook); - $ldap->prop['search_fields'] = array($match); - $results = $ldap->search($match, $args['user'], TRUE); - if (count($results->records) == 1) { - $args['user_name'] = $results->records[0]['name']; - } - } - return $args; - } -} -?> -- cgit v1.2.3