WSteffen | 3 Feb 2004 21:49
Picon

making the SDK

I am trying to build the LDAP SDK on a Linux 2.4.17 system.
Part way through I get the following:
    os-ip.c
os-ip.c: In function `nsldapi_connect_to_host':
os-ip.c:109: warning: too many arguments for format
os-ip.c:123: warning: implicit declaration of function `inet_addr'
os-ip.c:126: warning: passing arg 5 of `gethostbyname_r' from 
incompatible pointer type
os-ip.c:126: too few arguments to function `gethostbyname_r'
os-ip.c:126: warning: assignment makes pointer from integer without a cast
os-ip.c:300: warning: implicit declaration of function `inet_ntoa'
os-ip.c:323: warning: format argument is not a pointer (arg 4)
os-ip.c:323: warning: too many arguments for format
os-ip.c: In function `nsldapi_do_ldap_select':
os-ip.c:556: warning: too many arguments for format
gmake[4]: *** [Linux2.4.22_x86_DBG.OBJ/os-ip.o] Error 1
gmake[4]: Leaving directory 
`/work/ldap/mozilla/directory/c-sdk/ldap/libraries/libldap'
gmake[3]: *** [install] Error 2
gmake[3]: Leaving directory 
`/work/ldap/mozilla/directory/c-sdk/ldap/libraries'
gmake[2]: *** [install] Error 2
gmake[2]: Leaving directory `/work/ldap/mozilla/directory/c-sdk/ldap'
gmake[1]: *** [libs] Error 2
gmake[1]: Leaving directory `/work/ldap/mozilla/directory'
gmake: *** [build] Error 2

Also there were MANY of the "warning: too many arguments for format"
before when other modules were compiling.

(Continue reading)

luke call | 3 Feb 2004 23:13

patch filed for ldap sdk performance issue

I put a patch here, with explanation, for a performance issue that 
really hit us:
http://bugzilla.mozilla.org/show_bug.cgi?id=231623

What are the chances of having this patch (or some effective variation) 
included? Any discussion or suggestions on how I may be handling this 
better would be welcome. Thanks very much. -Luke

[Here is the text from the bugzilla post:]

When I query an ldap server w/ the java sdk for a group that has 17000 
users in it, it takes 35 seconds to get the data back. The data comes to 
my PC instantly (i.e., not a network or server issue), but the API takes 
that long to do a "next()" to process it. I debugged into the code and 
that the performance bottleneck is in 
com.netscape.jndi.ldap.AttributesImpl.java's
ldapAttrToJndiAttr() method. If I change this line:
     BasicAttribute jndiAttr = new BasicAttribute(attr.getName());
...to this...
     BasicAttribute jndiAttr = new BasicAttribute(attr.getName(),true); 
// added
"true", 1/2004 lacall (lukemz <at> onemodel.org; Luke Call)

...then I no longer see the problem (goes from 35 seconds down to 40 ms).

However, I don't know all the implications for other uses of the API, of 
forcing that "true" parameter, which means "unsorted". It has worked w/ 
my minimal testing so far. Maybe a different change would be better (if 
I knew the api structure better and why it does things a certain way), 
for example, to allow passing a parameter from a higher-level API w/in 
(Continue reading)

Konrad Mader | 9 Feb 2004 11:57

ldap first step

Hello,

Could somebody please direct me?
- I have Mozilla 1.6
- I have a blank OpenLDAP (Debian)

- in the slapd.conf there is a line
   "suffix 'dc=test'" and
   "schemacheck on"

What I have to do, to get a LDAP-Adressbook in Mozilla?

Thank you,
Konrad

PS. is this the right newsgroup for that?
Einat d | 10 Feb 2004 13:02
Picon
Favicon

Using referrals in iPlanet directory server

Hello,

I defined a replica of single master between iPlanet directory server
5.1 and SunOne directory 5.2
The master is the SunOne directory.

I defined referrals on update for one of the replicated suffixes.

I used LdapBrowser to update one of the users and it fails with err=2
When I looked at the access logs of both directories I saw this on the
SunOne (master) directory:
conn=22 op=-1 msgId=-1 - fd=948 slot=948 LDAP connection from <ip
consumer> <ip master>
conn=22 op=0 msgId=1 - BIND dn="cn=Directory Manager" method=128
version=3
conn=22 op=0 msgId=1 - RESULT err=0 tag=97 nentries=0 etime=0
dn="cn=directory manager"
conn=22 op=1 msgId=2 - RESULT err=2 tag=105 nentries=0 etime=0
conn=22 op=2 msgId=3 - MOD dn=""
conn=22 op=2 msgId=3 - RESULT err=65 tag=103 nentries=0 etime=0

On the other hand when I define the consumer to referrals in general
(not just for update) it works fine and sends the dn.

Does anyone know why is it happening?

Thanks
Einat
Richard Megginson | 10 Feb 2004 16:59
Picon

Re: Using referrals in iPlanet directory server

Einat d wrote:
> Hello,
> 
> I defined a replica of single master between iPlanet directory server
> 5.1 and SunOne directory 5.2
> The master is the SunOne directory.
> 
> I defined referrals on update for one of the replicated suffixes.
> 
> I used LdapBrowser to update one of the users and it fails with err=2
> When I looked at the access logs of both directories I saw this on the
> SunOne (master) directory:
> conn=22 op=-1 msgId=-1 - fd=948 slot=948 LDAP connection from <ip
> consumer> <ip master>
> conn=22 op=0 msgId=1 - BIND dn="cn=Directory Manager" method=128
> version=3
> conn=22 op=0 msgId=1 - RESULT err=0 tag=97 nentries=0 etime=0
> dn="cn=directory manager"
> conn=22 op=1 msgId=2 - RESULT err=2 tag=105 nentries=0 etime=0
> conn=22 op=2 msgId=3 - MOD dn=""

Modify of DN ""?  For one, the directory server does not allow 
modifications to the root DN "".  For another, you cannot replicate this 
DN, so you cannot setup a referral on update for this DN.

> conn=22 op=2 msgId=3 - RESULT err=65 tag=103 nentries=0 etime=0
> 
> On the other hand when I define the consumer to referrals in general
> (not just for update) it works fine and sends the dn.

(Continue reading)

Wisdom Change | 13 Feb 2004 08:14

www.wisdomchange.com

www.wisdomchange.com

Websites content change management and control.

Now You can manage if any of Your favorite website has been changed.
WisdomChange will send You notification immediately to Your inbox or any
device that can receive text messages (like cell phones, handheld, etc) with
what and when was changed.
Very neat user interface, very intuitive, impressive highlighting of changes
in content.
No limit in number of managed websites.

You can use it for any need, including watching Your competitor, or
following anything.

Best regards,
  WisdomChange team
SudhaRani | 18 Feb 2004 21:05
Picon
Favicon

Failover issues

Hi All,
Has any one implemented faliover using the Netscape LDAP SDK or JNDI. We are looking for failover features during each operation. What we have noticed is that the connection fails over only when the connection is made.... and later if u reuse the same connection, it just throws a connection error and doesnot fail over to the next server in the server list. What is the behaviour in JNDI? If i create a connection pool in JNDI and while doing any operation what happens if one server is down?
 
Has any one implemented, a seperate thread whihc will do a health check on the server?
 
Thanks,
Sudha.

Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online
Shaffin Bhanji | 19 Feb 2004 21:57
Picon
Favicon

Re: ANN: Delphi LDAP header, Find People clone

I tried to access the site but it does not seem available!! Can someone 
share where I can download the Delphi wrapper to netscapes ldap sdk???

Thanks,
SAM.

Luk Vermeulen wrote:
> A conversion of the LDAP header file to Delphi, along with a Find People
> clone, is available at http://www.seria.com
> 
> -Luk-
> 
> 
> 
Shaffin Bhanji | 20 Feb 2004 05:10
Picon
Favicon

Delphi Wrapper for SDK????

Hello,

Does anyone know of a delphi wrapper to the Netscape LDAP SDK???

Thanks,
Sam.
Pradnyesh Rane | 20 Feb 2004 06:45
Picon

Building LDAP SDK

Hi,

I have the following questions regarding the Mozilla LDAP SDK.

1) Is the Mozilla LDAP SDK the same SDK provided as part of Netscape
Directory Server?

2) The LDAP SDK build instructions on
http://www.mozilla.org/directory/csdk.html mention the following
configuration

a)Latest LDAP C SDK code [ cvs co -P DirectorySDKSoureC ]
b)NSPR 4.2.2  [ cvs co -r NSPR_4_2_2_RELEASE mozilla/nsprpub ]
c)NSS 3.7.7  [ cvs co -r NSS_3_7_7_RTM mozilla/security/coreconf
mozilla/security/nss ]
d) DBM 1.61 [ cvs co -r DBM_1_61_RTM mozilla/dbm mozilla/security/dbm ]

I noticed the latest tag on the source files is
nscp-ldapcsdk_branch50-20031023-RtmAll. Which version of LDAP SDK does this
correspond to ? [5.08, 5.10, 5.12 etc] Is there any documentation that
contains this mapping between tags and LDAP SDK release versions?

The version of NSPR has progressed to 4.4.x and beyond. Ditto for NSS and
DBM. What is the correct version of NSPR, NSS and DBM to be used for
building ... say LDAP SDK 5.10? Is there any document that explains the
correct mapping between releases of NSPR etc and Directory SDK code?

Any help is appreciated.

Thanks,
Pradnyesh Rane

Gmane