LDAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesLDAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 27th, 2012, 10:08 AM
setic setic is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 1 setic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 59 sec
Reputation Power: 0
Problem with OpenLdap

Hi all

I have a problem with OpenLdap ( v. 2.4.30 ).
I try to make addres book application on PHP and for that I make my own schema

my problem is that after I try to add some record in database i see that in my syslog:

============
hdb_add: entry failed schema check: no objectClass attribute (65)
slapd[10031]: send_ldap_result: conn=1000 op=1 p=3
slapd[10031]: send_ldap_result: err=65 matched="" text="no objectClass attribute"
slapd[10031]: send_ldap_response: msgid=2 tag=105 err=65
slapd[10031]: conn=1000 op=1 RESULT tag=105 err=65 text=no objectClass attribute
============

Error 65 means LDAP_OBJECT_CLASS_VIOLATION - An object class violation occurred when using the current schema, for example, a "must" attribute was missing when adding an entry.

Do you possibe to help me with that ?
If you need I can add copy of schema.

Thanks in advance !

P.S. I use Linux Gentoo 3.2.12-gentoo #7 SMP Tue Jun 19 14:06:22 EEST 2012 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux

My Shema is:
================
# Tefter schema v 0.0.1
#
#
# Atribute description


attributetype ( 1.3.6.1.4.1.40074.2.2
NAME 'CreatorOfRecord'
DESC 'Who create that record'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.3
NAME 'DateOfCreation'
DESC 'When the recors are created'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.4
NAME 'PersonalSuffix'
DESC 'D-r, Prof., Sir...'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.5
NAME 'PersonalPrefix'
DESC 'Mr., Miss,....'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.6
NAME 'FirstName'
EQUALITY caseIgnoreMatch
DESC 'First name'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.7
NAME 'FathersName'
EQUALITY caseIgnoreMatch
DESC 'Second name'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.8
NAME 'LastName'
EQUALITY caseIgnoreMatch
DESC 'Family name'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.9
NAME 'Company'
DESC 'Comapny'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.10
NAME 'PositionInCompany'
DESC 'Position in company'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.11
NAME 'WorkAddress'
DESC 'Office address of company'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.12
NAME 'WorkTown'
DESC 'Town of the headquarter'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.13
NAME 'WorkDistrict'
DESC 'Destrict where is headquarter'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.14
NAME 'WorkPostCode'
DESC 'Post code of headquarter'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.15
NAME 'WorkCountry'
DESC 'Country of headquarter'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.16
NAME 'WorkPhoneNumber'
DESC 'Work phone number'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.50
)

attributetype ( 1.3.6.1.4.1.40074.2.17
NAME 'WorkMobileNumber'
DESC 'Work mobile phone number'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.50
)

attributetype ( 1.3.6.1.4.1.40074.2.18
NAME 'WorkFaxNumber'
DESC 'Work fax nimber'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.22
)

attributetype ( 1.3.6.1.4.1.40074.2.19
NAME 'HomePostAddress'
DESC 'Home postal addres'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.20
NAME 'HomeTown'
DESC 'Town of home'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.21
NAME 'HomeDistrict'
DESC 'District of home'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.23
NAME 'HomePostCode'
DESC 'Home postal code'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.24
NAME 'HomeCountry'
DESC 'Country of home'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.25
NAME 'HomePhoneNumber'
DESC 'Home phone number'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.50
)

attributetype ( 1.3.6.1.4.1.40074.2.26
NAME 'HomeMobileNumber'
DESC 'Private mobile phone'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.50
)

attributetype ( 1.3.6.1.4.1.40074.2.27
NAME 'HomeFaxNumber'
DESC 'Fax number in home'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.22
)

attributetype ( 1.3.6.1.4.1.40074.2.28
NAME 'WorkEmail'
DESC 'Work e-mail '
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
)

attributetype ( 1.3.6.1.4.1.40074.2.29
NAME 'HomeEmail'
DESC 'Private e-mail'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
)

attributetype ( 1.3.6.1.4.1.40074.2.30
NAME 'WorkURL'
DESC 'Web address of company'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.31
NAME 'HomeURL'
DESC 'Personal web address'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.32
NAME 'Note'
DESC 'Description of contact, from where is know, what is bussines area of company..'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.33
NAME 'PhotoPicture'
DESC 'Photo picture of contact'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.28{1048576}
)

attributetype ( 1.3.6.1.4.1.40074.2.34
NAME 'ICQMsg'
DESC 'ICQ number'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.35
NAME 'SkypeMsg'
DESC 'Skype name'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.36
NAME 'MSMsg'
DESC 'MS Mesanger contact name'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.37
NAME 'YahooMsg'
DESC 'Yahoo! contact name'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.38
NAME 'JabberMsg'
DESC 'Jabber contact name'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.39
NAME 'Category'
DESC 'Category of contact - frient, hotel, bussines parner..'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

attributetype ( 1.3.6.1.4.1.40074.2.40
NAME 'DateOfBirthday'
DESC 'Anniversary date'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)

# Object class description

objectclass ( 1.3.6.1.4.1.40074.3.1
NAME 'tefter'
SUP top
AUXILIARY
MAY (
CreatorOfRecord $ DateOfCreation $ PersonalSuffix $ PersonalPrefix $
Company $ PositionInCompany $
WorkAddress $ WorkTown $ WorkDistrict $ WorkPostCode $ WorkCountry $
WorkPhoneNumber $ WorkMobileNumber $ WorkFaxNumber $ HomePostAddress $
HomeTown $ HomeDistrict $ HomePostCode $ HomeCountry $ HomePhoneNumber $
HomeMobileNumber $ HomeFaxNumber $ WorkEmail $ HomeEmail $ WorkURL $
HomeURL $ Note $ PhotoPicture $ ICQMsg $ SkypeMsg $ MSMsg $ YahooMsg $
JabberMsg $ Category $ DateOfBirthday )
MUST ( FirstName $ FathersName $ LastName )
)
================

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesLDAP Programming > Problem with OpenLdap

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap