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

List:       openldap-general
Subject:    ldapmodify differences
From:       Edwin Whitelaw <ewhitelaw () gdats ! com>
Date:       1999-03-17 21:37:09
[Download RAW message or body]

I am currently running a home-grown web-ldap interface on a Solaris
2.5.1 machine using the ldapsearch/ldapmodify commands that come with
our NS Directory Server.

In moving this finction to my new Linux host which uses the (freshly)
compiled openldap versions of these same utilities, I find a bothersome
difference and would like to know which is the "proper" behavior if
there is such a beast.

The Web scripts allow user updates to their LDAP data and writes out an
LDIF file for ldapmodify with a replace command for each attribute.  

dn: cn=.....
changetype modify
replace: roomnumber
roomnumber: w2h63
-
replace: mobile
mobile: 
-
.
.
.
In this example, the mobile phone value is null and the Solaris version
modifies the server just fine, leaving the attribute there but with no
value.

However, when running this same file with the OpenLDAP/Linux version of
ldapmodify, it fails with an "invalid syntax on line xx" error.  If I
put any non-null value for mobile: it works or if I delete the mobile
section entirely, it works, but neither quite gives me what I want, an
attribute with no value.

How can I set the value to null without deleting the attribute?
I haven't tried the OpenLDAP compile on Solaris but that's a moot point
as I need to get the Linux version working.

BTW, NS's web tool deletes the attribute entirely if you remove an
existing value and then save changes.  If it is null but you make no
changes, it leaves it as is.

Thanks,

Edwin
-- 

<=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+>
Edwin Whitelaw, PE
Member Technical Staff
General Dynamics Advanced Technology Systems
(336) 698-8396 (Office)

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

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