[Date Prev][Date Next]
RE: Primary key equivalent in LDAP.
I believe that dn is equivalent to a primary key and if you have schema
checking turned on you shouldn't be able to add entries with the same dn.
On 23-Sep-99 Subodh Nijsure wrote:
> I have defined objectclass and attributes in the .at. and .oc. files and
> included them slapd.conf file.
> mycompany.oc.conf looks like this --
> objectclass modemUser
> mycompany.at.conf looks like this --
> attribute modemMacAddress dn
> attribute downStreamMinBandwidth bin
> attribute downStreamMaxBandwidth bin
> Now I am creating database using following input file.
> dn: o=mycompany.com,c=US
> dn: modemMacAddress="123", o=mycompany.com,c=US
> dn: modemMacAddress="346", o=mycompany.com,c=US
> The problem is -- I want to create the database so that 'modemMacAddress'
> should be the primary key i.e. there should be only one entry in the
> database for given modemAddress. With this schema definition I am able to
> add multiple rows with same modemMacAddress. What am I doing wrong?
> Would really appreciate any help!!
> /Subodh Nijsure
Jason Bodnar + firstname.lastname@example.org + Tivoli Systems
I swear, sometimes I'd forget my own head if it wasn't up my ass. -- Jason