Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-31-2004, 01:48 PM   #1
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?

Courier Mail Account
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
Could not add the object to the LDAP server.

LDAP said: 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
Your LDAP server does not have schema support for the sambaSamAccount objectClass. Cannot continue.
Old 12-31-2004, 07:02 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 261Reputation: 261Reputation: 261
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
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 (, I can create anything.

So anyone that can help?

Old 11-19-2005, 09:51 AM   #4
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
LQ Newbie
Registered: Jul 2004
Location: Minnesota, USA
Distribution: Debian
Posts: 11

Rep: Reputation: 0

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 ( 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
LQ Newbie
Registered: Jul 2004
Location: Minnesota, USA
Distribution: Debian
Posts: 11

Rep: Reputation: 0

Ahh, mine was user error, surprise surprise
Old 12-12-2007, 03:41 AM   #7
LQ Newbie
Registered: Dec 2007
Posts: 1

Rep: Reputation: 0
Cool link wrong

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.


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
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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:45 AM.

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