From owner-freebsd-questions@FreeBSD.ORG Mon Apr 24 18:19:48 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D85916A404 for ; Mon, 24 Apr 2006 18:19:48 +0000 (UTC) (envelope-from Joerg.Pulz@frm2.tum.de) Received: from mailhost.frm2.tum.de (mailhost.frm2.tum.de [129.187.179.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3184E43D6D for ; Mon, 24 Apr 2006 18:19:43 +0000 (GMT) (envelope-from Joerg.Pulz@frm2.tum.de) Received: from localhost (mailhost.frm2.tum.de [129.187.179.12]) by mailhost.frm2.tum.de (8.13.4/8.13.4) with ESMTP id k3OIJgbI056649; Mon, 24 Apr 2006 20:19:42 +0200 (CEST) (envelope-from jpulz@frm2.tum.de) X-Virus-Scanned: at mailhost.frm2.tum.de Received: from hades.admin.frm2 (hades.admin.frm2 [172.25.1.10]) by mailhost.frm2.tum.de (8.13.4/8.13.4) with ESMTP id k3OIJbHj056645 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 24 Apr 2006 20:19:37 +0200 (CEST) (envelope-from jpulz@frm2.tum.de) Received: from hades.admin.frm2 (localhost [127.0.0.1]) by hades.admin.frm2 (8.13.4/8.13.4) with ESMTP id k3OIJbcl052875; Mon, 24 Apr 2006 20:19:37 +0200 (CEST) (envelope-from jpulz@frm2.tum.de) Received: (from jpulz@localhost) by hades.admin.frm2 (8.13.4/8.13.4/Submit) id k3OIJatE052874; Mon, 24 Apr 2006 20:19:36 +0200 (CEST) (envelope-from jpulz) Date: Mon, 24 Apr 2006 20:19:34 +0200 (CEST) From: Joerg Pulz To: Erik Norgaard In-Reply-To: <444C8562.9010708@locolomo.org> Message-ID: <20060424201449.J52948@hades.admin.frm2> References: <444C8562.9010708@locolomo.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: questions@freebsd.org Subject: Re: LDAP schema problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Apr 2006 18:19:48 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 24 Apr 2006, Erik Norgaard wrote: > Hi: > > I am writing here because OpenLDAP doesn't seem to have a list for user > questions. > > I am building an address book, suffix "dc=domain, dc=tld". I have two > problems: > > a) To get attributes such as "mail" I use the inetOrgPerson object > class. Further, since my contacts are personal contacts and not business > I wanted to use the residentialPerson object class to get postal address > attributes. > > It seems that the only difference from the organizationalPerson object > class is that "l" is required parameter, but, I get this error: > > ldap_add: Internal (implementation specific) error (80) > additional info: no structuralObjectClass operational attribute > > for this entry: > > dn: cn=First Lastname, ou=people, dc=domain, dc=tld > objectClass: top > objectClass: residentialPerson > objectClass: inetOrgPerson > cn: First Lastname > sn: Lastname > l: somewhere > > While if I change residentialPerson to organizationalPerson, I get no > error. I have found that I can add the residentialPerson if I remove > inetOrgPerson objectClass. > > What causes the conflict? > > b) In their infinite wisdom, those who defined the person and derivative > object classes did not add country to the list of possible attributes. > Adding this object class to the otherwise working entry: > > dn: cn=First Lastname, ou=people, dc=domain, dc=tld > objectClass: top > objectClass: organizationalPerson > objectClass: inetOrgPerson > objectClass: country > cn: First Lastname > sn: Lastname > l: somewhere > c: XX > > I again get the error: > > ldap_add: Internal (implementation specific) error (80) > additional info: no structuralObjectClass operational attribute > > I'd prefer not to go through the pain of defining my own schema from > scratch, obtain OID etc just for adding such a basic attribute, what is > the recommended "patch"? Erik, please try this: dn: cn=First Lastname, ou=people, dc=domain, dc=tld objectClass: top objectClass: person objectClass: inetOrgPerson cn: First Lastname givenName: First sn: Lastname postalAddress: some_address postalCode: 12345 street: some_street st: some_state telephoneNumber: 01232234 mobile: 0042750 facsimileTelephoneNumber: 12470512 pager: 38979 homePhone: 07520326 homePostalAddress: some_address mail: mail@domain.tld Do you need more? regards Joerg - -- The beginning is the most important part of the work. -Plato -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFETRa4SPOsGF+KA+MRAoXxAKC+r750qoLesN3Oojff8GgOK9sqJQCgvxai XFJ6wJB6fsleewvHZuVDMNg= =V+Yj -----END PGP SIGNATURE-----