LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-04-2005, 05:56 PM   #1
sierraaltae
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Rep: Reputation: 0
Unhappy URGENT: ldap_add(): Add: Object class violation error 65


I have same problem with php4 and ldap when execute the command ldap_add - Error number 65: Object class violation" . This error happens when I include the
dialupAccess attribute of radiusprofile objectclass.

and. The shema included is:

* RADIUS-LDAPv3.schema (radiusprofile and dialupAccess attribute)
* openLdap 1.0.2-4
* Freeradius 1.0.2-4

PHP code ldap-add:

$info["objectClass"]="top";
$info["objectClass"]="radiusprofile";
$info["objectClass"]="person";
$info["objectClass"]="inetOrgPerson";
$info["uid"]="radius";
$info["mail"]="prueba@cnti.ve";
$info["cn"]="CNTI";
$info["sn"]="Reacciun";
$info[dialupAccess]="yes";
$info["userPassword"]= "{crypt}254521";

ldap_add(cn=admin,dc=cnti,dc=gob,dc=ve, uid=$login,
ou=People,dc=cnti,dc=gob,dc=ve,$info);

The error is:
Object class violation (65) additional info: attribute 'dialupAccess'
not allowed.


The dialupAccess attribute is defined in the shema (section may). The shema have defined as "MUST" cn attribute.

Somebody can help me with this problem?... Thanks.
 
Old 08-05-2005, 11:41 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
please do not mark threads as "urgent". they are not urgent for any of the members of LQ.org who kindly donate their time to help others.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openldap: ldap_add: Naming violation (64) libregeek Linux - Networking 2 11-24-2005 01:51 AM
Pass object variable to anothor class in JAVA hus Programming 2 05-11-2005 05:04 AM
Talk to an object in a diferent class bastl Programming 9 03-17-2005 02:36 PM
C++ class-object? shivaligupta Programming 2 01-06-2005 03:25 AM
Event driven object-to-object: C++ template class mecanism ( NOT STL or STDC++) bretzeltux Programming 2 12-23-2003 03:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration