File/plugins/autoresponder/backend/qldap.php

Description

NaSMail Autoresponder Qmail-LDAP backend

Copyright (c) 2005 The SquirrelMail Project Team Copyright (c) 2006-2007 The NaSMail Project

This file is part of Autoresponder plugin designed for NaSMail webmail interface.

NaSMail Autoresponder plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

NaSMail Autoresponder plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with NaSMail Autoresponder plugin; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

  • version: $Id: qldap.php 606 2007-08-15 17:42:00Z tokul $
Includes
 include_once (SM_PATH.'functions/mime.php') (line 34)

header decoding and encoding

 include_once (SM_PATH.'functions/imap_general.php') (line 36)

sqimap_get_user_server()

Functions
arp_qldap_create_replyText (line 505)

Creates new reply text.

Original message is needed in order to preserve headers

string arp_qldap_create_replyText (string $orig_replyText, string $subject, string $message)
  • string $orig_replyText
  • string $subject
  • string $message
arp_qldap_get_attr_values (line 487)

Returns ldap attribute values without counter information

array arp_qldap_get_attr_values (array $ldap_values)
  • array $ldap_values
arp_qldap_get_headers (line 439)

Extracts headers from reply text

  • return: message headers (key = header name, value = header value)
array arp_qldap_get_headers (string $replyText)
  • string $replyText: combined qmail-ldap reply headers(optional) and message body text.
arp_qldap_get_message (line 461)

Extracts message text from reply text

  • return: message body
string arp_qldap_get_message (string $replyText)
  • string $replyText: combined qmail-ldap reply headers(optional) and message body text.
arp_qldap_open_server (line 256)
  • return: true if connection was opened and user's dn was found. false in any other case.
boolean arp_qldap_open_server ( &$aMsgs,  &$arp_qldap_con, array $aMsgs, resource $arp_qldap_con, string $arp_qldap_userdn)
  • array $aMsgs: error messages.
  • resource $arp_qldap_con: ldap connection resource (returned in reference)
  • string $arp_qldap_userdn: user's dn (return in reference)
  • &$aMsgs
  • &$arp_qldap_con
arp_qldap_specialchars (line 424)

Sanitizes LDAP query strings.

original code - ldapquery plugin. See rfc2254

string arp_qldap_specialchars (string $string)
  • string $string
arp_qldap_uid_search (line 389)

Search LDAP for user id.

  • return: false if connection failed.
boolean arp_qldap_uid_search (resource $ldap_con, string $ldap_basedn,  &$aMsgs,  &$results,  &$userdn, array $aMsgs, object $results, string $userdn)
  • resource $ldap_con: ldap connection
  • string $ldap_basedn: ldap basedn
  • array $aMsgs: error messages
  • object $results: ldap search results
  • string $userdn: DN of found entry
  • &$aMsgs
  • &$results
  • &$userdn
squirrel_autorespond_init_qldap (line 83)

init variables and make sure that required parts are not missing.

void squirrel_autorespond_init_qldap ()
squirrel_autorespond_save_qldap (line 155)

Save reply text and delivery mode changes

void squirrel_autorespond_save_qldap ()

Documentation generated on Sun, 22 Nov 2009 17:36:44 +0200 by phpDocumentor 1.4.3