NAME

Net::LDAP::Extensions::eDirectory - Novell* eDirectory* Extensions


SYNOPSIS

use Net::LDAP::Extensions::eDirectory; $ldap = Net::LDAP->new(``test-server'') or die ``$@''; $ldap->bind('cn=username,o=acme',password => 'secret', version=>3); $identity=``''; # passing the reference $ref=\$identity;

Net::LDAP::Extensions::eDirectory::GetBindDN($ldap,$ref); print ``The identity is $identity'' . ``\n''; $ldap->unbind();


DESCRIPTION

Net::LDAP::Extensions::eDirectory is a set of functions for performing extended operations on eDirectory.


FUNCTIONS

AbortPartitionOperation(LDAP CONN OBJECT,INT,LDAPDN)
Aborts the last partition operation requested on the specified partition, if the operation is not completed.

Example

   $ldap = Net::LDAP->new("your-test") or die "$@";
   $ldap->bind('cn=username,o=acme',password => 'secret', version=>3);
   Net::LDAP::Extensions::eDirectory::AbortPartitionOperation($ldap,0,'o=acme');

AddReplica(LDAP CONN OBJECT,INT,INT,LDAPDN,LDAPDN)
Adds a replica to the specified eDirectory server.

ChangeReplicaType(LDAP CONN OBJECT,INT,INT,LDAPDN,LDAPDN)
Changes the type of the replica residing on the specified eDirectory server.

GetBindDN(LDAP CONN OBJECT)
 Assigns the distinguished name of the user to the BindDN reference variable.
GetEffectivePrivileges(LDAP CONN OBJECT,LDAPDN,LDAPDN,LDAPDN)
Assigns the number of effective rights of one object to the attribute of another object. This value is assigned to the GetEffectivePrivileges reference variable.

MergePartitions(LDAP CONN OBJECT,INT,LDAPDN)
Merges a child partition with its parent partition.

PartitionEntryCount(LDAP CONN OBJECT,LDAPDN)
Assigns the number of objects in the specified partition to PartitionEntryCount reference variable.

Example

use Net::LDAP::Extensions::eDirectory; $ldap = Net::LDAP->new(``blr-test'') or die ``$@''; $ldap->bind('cn=username,o=acme',password => 'secret', version=>3) or die ``Not able to bind'';

$partcount=0; $ref=\$partcount;

Net::LDAP::Extensions::eDirectory::PartitionEntryCount($ldap,'o=novell',$ref); print $partcount; $ldap->unbind();

PartitionSync(LDAP CONN OBJECT,LDAPDN,LDAPDN,INT)
Synchronizes all replicas of a naming context.

ReceiveAllUpdates(LDAP CONN OBJECT,LDAPDN,LDAPDN,LDAPDN)
Schedules a specified eDirectory server to receive updates from another eDirectory server, for a specific replica.

RefreshLDAPServer(LDAP CONN OBJECT)
Reloads the LDAP server.

RemoveOrphanPartition(LDAP CONN OBJECT,LDAPDN,LDAPDN)
Deletes an orphan partition.

RemoveReplica(LDAP CONN OBJECT,INT,LDAPDN,LDAPDN)
Removes a replica from the specified eDirectory server.

SchemaSync(LDAP CONN OBJECT,LDAPDN,INT)
Synchronizes the schema.

SendAllUpdates(LDAP CONN OBJECT,LDAPDN,LDAPDN)
Sends an updated request to all eDirectory servers in a replica ring.

SplitOrphanPartition(LDAP CONN OBJECT,LDAPDN,LDAPDN)
Splits a new orphan partition.

SplitPartition(LDAP CONN OBJECT,INT,LDAPDN)
Splits the given partition.

Example

   my $ldap = Net::LDAP->new("your-test") or die "$@";
   $ldap->bind('cn=username,o=acme',password => 'secret', version=>3);
   Net::LDAP::Extensions::eDirectory::SplitPartition($ldap,0,'o=acme');

TriggerBackgroundProcess(LDAP CONN OBJECT,OID)
Triggers the specified background process on the eDirectory server.

Example

   2.16.840.1.113719.1.27.100.43

ListReplicas(LDAP CONN OBJECT,SERVERNAME,ARRAYREF)
Lists all the replicas that reside on the the specified eDirectory server.

Example

use Net::LDAP::Extensions::eDirectory; use Net::LDAP::Util qw(ldap_error_name ldap_error_text); use Net::LDAP qw(:all);

$ldap = Net::LDAP->new("test-server") or die "$@";
$msg=$ldap->bind('cn=user,o=acme',password => 'secret', version=>3) or die "Not able to bind";
@array=( );
$arrayref=\@array;

$msg=Net::LDAP::Extensions::eDirectory::ListReplicas($ldap,'cn=blr-script-test,o=novell',$arrayref);

my $arraylength=$#array;

if(ldap_error_name($msg->code) eq ``LDAP_SUCCESS'') { for(my $count=1; $count <= $arraylength;$count++){ print ``The Replicas are ''. $array[$count].``\n''; } } $ldap->unbind();