Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.