[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-ldap-dev
Subject:    Re: nsaccountlock attribute
From:       Neo - <kpaxian25 () yahoo ! com>
Date:       2007-04-20 21:21:51
Message-ID: 329625.32011.qm () web52006 ! mail ! re2 ! yahoo ! com
[Download RAW message or body]


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 <ibmslapd@yahoo.com>
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 - <kpaxian25@yahoo.com>
To: Chris Ridd <chrisridd@mac.com>; 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 <chrisridd@mac.com>
To: Neo - <kpaxian25@yahoo.com>; perl-ldap@perl.org
Sent: Friday, April 13, 2007 2:17:01 PM
Subject: Re: nsaccountlock attribute

On 13/4/07 7:31, "Neo -" <kpaxian25@yahoo.com> 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 



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic