Overview

Packages

  • Beatnik
  • None

Classes

  • Autogenerate
  • Beatnik
  • Beatnik_Driver
  • Beatnik_Driver_ldap2dns
  • Beatnik_Driver_pdnsgsql
  • Beatnik_Driver_sql
  • DeleteRecord
  • EditRecord
  • Overview
  • Package
  • Class
  • Tree

Class Beatnik_Driver_ldap2dns

Copyright 2005-2007 Alkaloid Networks http://www.alkaloid.net

See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.

Beatnik_Driver
Extended by Beatnik_Driver_ldap2dns
Package: Beatnik
Author: Ben Klang ben@alkaloid.net
Located at Driver/ldap2dns.php
Methods summary
public
# Beatnik_Driver_ldap2dns( array $params = array() )

Constructs a new Beatnik LDAP driver object.

Constructs a new Beatnik LDAP driver object.

Parameters

$params
A hash containing connection parameters.
public array
# getRecDriverTypes( )

Get any record types available specifically in this driver.

Get any record types available specifically in this driver.

Returns

array
Records available only to this driver

Overrides

Beatnik_Driver::getRecDriverTypes()
public array
# getRecDriverFields( string $type )

Get any fields available specifically in this driver by record type.

Get any fields available specifically in this driver by record type.

Parameters

$type
Record type for which fields should be returned

Returns

array
Fields specific to this driver

Overrides

Beatnik_Driver::getRecDriverFields()
public array
# _getDomains( )

Gets all zones for accessible to the user matching the filter

Gets all zones for accessible to the user matching the filter

Returns

array
Array with zone records numerically indexed
public string
# _getAttrByField( mixed $field )

Map LDAP Attributes to application record fields

Map LDAP Attributes to application record fields

Parameters

$field
<p>LDAP Attribute for which a record field should be returned</p>

Returns

string
Application record field name
public array
# getRecords( string $domain )

Gets all records associated with the given zone

Gets all records associated with the given zone

Parameters

$domain
Retrieve records for this domain

Returns

array
Array with zone records
public boolean
# _deleteRecord( array & $info )

Delete record from backend

Delete record from backend

Parameters

$info
Reference to array of record information for deletion

Returns

boolean
true on success
public mixed
# _saveRecord( array $info )

Saves a new or edited record to the DNS backend

Saves a new or edited record to the DNS backend

Parameters

$info
Array from Horde_Form with record data

Returns

mixed
The new or modified record ID on success;
public
# cleanFilterString( mixed $string )
public
# cleanDNString( mixed $string )
public boolean
# _connect( )

Attempts to open a connection to the LDAP server.

Attempts to open a connection to the LDAP server.

Returns

boolean
True on success.

Throws

Beatnik_Exception
Methods inherited from Beatnik_Driver
Beatnik_Driver(), deleteRecord(), factory(), getDomain(), getDomains(), getRecord(), recordExists(), saveRecord()
Properties summary
public object $_LDAP

Handle for the current database connection.

Handle for the current database connection.

#
public boolean $_connected

Boolean indicating whether or not we're connected to the LDAP server.

Boolean indicating whether or not we're connected to the LDAP server.

# false
Properties inherited from Beatnik_Driver
$_params
API documentation generated by ApiGen