--On Monday, March 17, 2008 11:26 PM +0530 vinodh kumar <vinstce(a)gmail.com>
wrote:
our ldif file is,
dn: cn:new,dc=example,dc=com
objectClass:posixAccount
cn:new
uid:new
displayname:neww
homedirectory
homedirectory:/home/new
I suggest you research into objectClasses and valid objectClass chains.
The error you've gotten is quite correct, you've failed to provide a
structural objectClass in your entry. Think of it in terms of object
oriented programming -- Every entry object must be of a specific class,
which can then be added onto with auxiliary information. posixAccount is
auxiliary, you need to add a valid structural OC to your entry.
"account" may be the one you're looking for:
objectclass ( 0.9.2342.19200300.100.4.5 NAME 'account'
SUP top STRUCTURAL
MUST userid
MAY ( description $ seeAlso $ localityName $
organizationName $ organizationalUnitName $ host )
)
--Quanah
--
Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra :: the leader in open source messaging and collaboration