LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-31-2004, 01:48 PM   #1
dlublink
Member
 
Registered: Oct 2004
Location: Canada
Distribution: Ubuntu
Posts: 330

Rep: Reputation: 30
Can't create LDAP entries with phpldapadmin


I get error messages I get when I try to make certain entries using the phpldapadmin program.(see below for what I make and what the error is)

I really have absolutely no idea what is causing this or where to even start looking. I have googled it and found nothing.

Any thoughts? What information should I give you in relation to this problem?

Thanks,
David
====
posixAccount
Courier Mail Account
=================
Error
Could not add the object to the LDAP server.

LDAP said: Undefined attribute type
Error number: 0x11 (LDAP_UNDEFINED_TYPE)
Description: The attribute type specified is invalid.

================
When I make a DNS entry it says
=======
Error
Could not add the object to the LDAP server.

LDAP said: Object class violation
Error number: 0x41 (LDAP_OBJECT_CLASS_VIOLATION)
Description: You tried to perform an operation that would cause an undefined attribute to exist or that would remove a required attribute, given the current list of ObjectClasses. This can also occur if you do not specify a structural objectClass when creating an entry, or if you specify more than one structural objectClass.


Samba 3 User
==========
Error
Your LDAP server does not have schema support for the sambaSamAccount objectClass. Cannot continue.
 
Old 12-31-2004, 07:02 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Seems to me your LDAP server doesnt like the attributes phpldapadmin is trying to create these as. Was it compiled with such support or setup to accept such additions?
 
Old 11-15-2005, 12:47 AM   #3
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Rep: Reputation: 30
I faced these error too, but phpmyadmin is supposed to run smooth with openldap as openldap is used to demostrate the features of phpmyadmin.

In the demo (phpmyadmin.sf.net), I can create anything.

So anyone that can help?

Thanks!
 
Old 11-19-2005, 09:51 AM   #4
cape25
LQ Newbie
 
Registered: Nov 2005
Posts: 6

Rep: Reputation: 0
schemas uncommented, typo?

check your /etc/openldap/slapd.conf file and uncomment all the "include" schema lines as maybe the attribute you are trying to add is not in one of the schemas that is already uncommented. Also, be very careful about typos and syntax in your add statement. It can't find the attribute listed in any of the available schemas and that may be because of a typo in the attribute.
 
Old 08-21-2006, 11:00 PM   #5
ixe
LQ Newbie
 
Registered: Jul 2004
Location: Minnesota, USA
Distribution: Debian
Posts: 11

Rep: Reputation: 0
Hint

I'm working with a very similar issue right now.
I don't have it solved yet, but I wanted to post here before I forget in case this is helpful.

I turned on full logging in slapd.conf:

# Read slapd.conf(5) for possible values
loglevel 4096

Restarted the service and found this in the log when I got the error message:
[TIMESTAMP] [HOSTNAME] slapd[PID]: Entry (uid=xxxx$,sambaDomainName=xxxx,dc=xxxx,dc=xxxx): object class 'posixAccount' requires attribute 'gidNumber'


This traced back to the nis.schema
# Object Class Definitions

objectclass ( 1.3.6.1.1.1.2.0 NAME 'posixAccount' SUP top AUXILIARY
DESC 'Abstraction of an account with POSIX attributes'
MUST ( cn $ uid $ uidNumber $ gidNumber $ homeDirectory )
MAY ( userPassword $ loginShell $ gecos $ description ) )


I'm not sure whether I need to tell phpldapadmin to include that or tell nis not to or what. It's a start though. HTH
 
Old 08-21-2006, 11:13 PM   #6
ixe
LQ Newbie
 
Registered: Jul 2004
Location: Minnesota, USA
Distribution: Debian
Posts: 11

Rep: Reputation: 0
Prerequisite

Ahh, mine was user error, surprise surprise
http://wiki.pldapadmin.com/tiki-view_faq.php?faqId=1#q8
 
Old 12-12-2007, 03:41 AM   #7
pseglar
LQ Newbie
 
Registered: Dec 2007
Posts: 1

Rep: Reputation: 0
Cool link wrong

Hi!
That link is broken!

Nevertheless, I had the same problem when I tried to create a Posix Account.
The problem was I was triing to add this account into a basic ou.

If you want to add a Posix account, need to create it from a posix group, not from a simple Organisational unit.

In Samba accounts I think you have to do the same.


sorry about my english.
 
  


Reply



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
LDAP How to add entries durgap Linux - Networking 4 11-10-2006 04:55 AM
Using LDAP to create and Manage Linux Accounts BBQ_Matt Linux - Networking 2 06-20-2005 04:20 PM
"getent" won't show LDAP entries LowellL SUSE / openSUSE 0 05-30-2005 02:46 PM
Script to create menu-entries for installed apps pingu Debian 4 04-06-2005 05:10 AM
Adding entries to an LDAP address book? [GOD]Anck Linux - Software 1 02-10-2005 09:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:18 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