Usually when you do replication your data should be in sync between two 
servers. If its not sync check the log file for error messages.

easiest way to check update an attribute value in the master server and check 
other servers if that change is reflected.

HTH

----- Original Message ----
From: Bill <[EMAIL PROTECTED]>
To: perl-ldap@perl.org
Sent: Friday, April 20, 2007 8:30:45 AM
Subject: Re: nsaccountlock attribute

Hi All.  

What is the easiest way between syncing information from 1 server to another.  
We have 4 servers in peer to peer replication.  But out of the 4 only 1 has the 
updated data.  I need to check if the data exist on other servers and if not to 
add it to the other servers.  What would be the easiest way to do this. 

Thanks - Bill


----- Original Message ----
From: Neo - <[EMAIL PROTECTED]>
To: Chris Ridd <[EMAIL PROTECTED]>; perl-ldap@perl.org
Sent: Friday, April 13, 2007 3:40:00 PM
Subject: Re: nsaccountlock attribute


Thanks Chris, It worked.

----- Original Message ----
From: Chris Ridd <[EMAIL PROTECTED]>
To: Neo - <[EMAIL PROTECTED]>; perl-ldap@perl.org
Sent: Friday, April 13, 2007 2:17:01 PM
Subject: Re: nsaccountlock attribute

On 13/4/07 7:31, "Neo -" <[EMAIL PROTECTED]> wrote:

> Hi, I am not able to retrieve  nsaccountlock attribute value using net ldap. I
> did able to retrive using ldapsearch command and ldap browser tools ..i am not
> sure what i am doing wrong in the code any advise greatly appreciated.

[...]

> $result=$ldap1->search(
>                       base => "$base",
>                       scope => "$scope",
>                       filter => "$filter",
>                       );

You're implicitly asking the server for "all user attributes" here.

>      $arrayref7=$entry->get('nsAccountlock');

If nsAccountlock's an operational attribute (your server's documentation
will say), you are not likely to get it returned by default with all the
user attributes.

Change the search so that it asks for it explicitly, perhaps including all
user attributes as per:

$result=$ldap1->search(
                      base => "$base",
                      scope => "$scope",
                      filter => "$filter",
                      attrs => [ "*", "nsAccountLock" ]
                      );

Cheers,

Chris








__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 





__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to