LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't create LDAP entries with phpldapadmin (https://www.linuxquestions.org/questions/linux-networking-3/cant-create-ldap-entries-with-phpldapadmin-272376/)

dlublink 12-31-2004 01:48 PM

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.

trickykid 12-31-2004 07:02 PM

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?

kaon 11-15-2005 12:47 AM

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!

cape25 11-19-2005 09:51 AM

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.

ixe 08-21-2006 11:00 PM

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

ixe 08-21-2006 11:13 PM

Prerequisite
 
Ahh, mine was user error, surprise surprise :)
http://wiki.pldapadmin.com/tiki-view_faq.php?faqId=1#q8

pseglar 12-12-2007 03:41 AM

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.


All times are GMT -5. The time now is 11:58 PM.