From jerrac@gmail.com Tue Oct 16 22:36:54 2012 From: jerrac@gmail.com To: openldap-bugs@openldap.org Subject: Re: (ITS#7417) Why is there no schema add utility? Date: Tue, 16 Oct 2012 22:36:54 +0000 Message-ID: <201210162236.q9GMasN1024802@boole.openldap.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1592916209133092577==" --===============1592916209133092577== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable --f46d04447dffae07bd04cc34c745 Content-Type: text/plain; charset=3DISO-8859-1 Really? How? Also, the method described by Zytrax is pretty much what all the search results said. Including https://help.ubuntu.com/12.04/serverguide/openldap-server.html And I couldn't find anything different in the Openldap.org documentation. Again, maybe because I didn't search for the right things... With slapadd and ldapadd, can you add a .schema file? Or does it have to be in LDIF syntax? *goes to check the man page* --David Reagan On Tue, Oct 16, 2012 at 1:31 PM, Howard Chu wrote: > jerrac(a)gmail.com wrote: > >> Full_Name: David Reagan >> Version: 2.4 >> OS: Ubuntu 12.04 >> URL: ftp://ftp.openldap.org/**incoming/ >> Submission from: (NULL) (163.41.112.5) >> >> >> Why is there no simple way to add new schema's to cn=3DConfig? As in, >> something >> like "slapadd --schema newschema.schema". >> > > Eh? New schemas can be added directly using slapadd, or using ldapadd. > > The best explanation I found on how to add a new schema is >> http://www.zytrax.com/books/**ldap/ch6/slapd-config.html#**use-schemas. >> You have to >> create a conf file, a new directory, run a command, edit a file, and then >> run >> another command. That's a lot of places where user error could break >> things. >> > > Your first mistake is in trusting anything that Zytrax says. Most of their > information is out of date or flat wrong. > > -- > -- Howard Chu > CTO, Symas Corp. http://www.symas.com > Director, Highland Sun http://highlandsun.com/hyc/ > Chief Architect, OpenLDAP http://www.openldap.org/**project/ > --f46d04447dffae07bd04cc34c745 Content-Type: text/html; charset=3DISO-8859-1 Content-Transfer-Encoding: quoted-printable Really? How?

Also, the method described by Zytrax is pretty much wh=3D at all the search results said. Including https://help.ubuntu.com/12.04/ser=3D verguide/openldap-server.html

And I couldn't find anything different in the Openldap.org document=3D ation. Again, maybe because I didn't search for the right things...
=3D
With slapadd and ldapadd, can you add a .schema file? Or does it have t=3D o be in LDIF syntax?

*goes to check the man page*

--David Reagan


On Tue, Oct 16, 2012 at 1:31 PM, Howard = =3D Chu <hyc(a)symas.com> wrote:
jerrac(a)gmail.co= m =3D wrote:
Full_Name: David Reagan
Version: 2.4
OS: Ubuntu 12.04
URL: ftp:/= /f=3D tp.openldap.org/incoming/
Submission from: (NULL) (163.41.112.5)


Why is there no simple way to add new schema's to cn=3D3DConfig? As in, s= =3D omething
like "slapadd --schema newschema.schema".

Eh? New schemas can be added directly using slapadd, or using ldapadd.

The best explanation I found on how to add a new schema is
http://www.zytrax.com/books/ldap/ch6/slapd-con= =3D fig.html#use-schemas. You have to
create a conf file, a new directory, run a command, edit a file, and then r=3D un
another command. That's a lot of places where user error could break th=3D ings.

Your first mistake is in trusting anything that Zytrax says. Most of their =3D information is out of date or flat wrong.

--
=3DA0 -- Howard Chu
=3DA0 CTO, Symas Corp. =3DA0 =3DA0 =3DA0 =3DA0 =3DA0 http://www.symas.com
=3DA0 Director, Highland Sun =3DA0 =3DA0 http://highlandsun.com/hyc/
=3DA0 Chief Architect, OpenLDAP =3DA0http://www.openldap.org/project/

--f46d04447dffae07bd04cc34c745-- --===============1592916209133092577==--