Networking Forums

Networking Forums > Computer Networking > Linux Networking > LDAP error message? (automount schema)

Reply
Thread Tools Display Modes

LDAP error message? (automount schema)

 
 
Charles Tryon
Guest
Posts: n/a

 
      01-20-2008, 02:39 AM

I've been working on getting an LDAP server up and running, in an
attempt to replace my old NIS service. I've used the following tutorial
to get much of the service up and running -- in particular getting user
names and passwords working so I can have a common authentication model.

http://www.linuxjournal.com/article/8119

I'm hoping at some point to be able to tie in LDAP and Samba so I can
unify my logins across both Linux and Windows, but that's another thread...

The one problem I'm stuck on however is specifying the automount
sources. I was able to do this in NIS by specifying the automount maps,
in particular for auto.home.

I am building this on a reasonably clean install of a Fedora-7
server. Following the tutorial, I've created the following
auto.master.ldif:

================================
dn: ou=auto.master,dc=bbaggins,dc=net
objectClass: top
objectClass: automountMap
ou: auto.master

dn: cn=/h,ou=auto.master,dc=bbaggins,dc=net
objectClass: automount
automountInformation: ldapu=auto.home,dc=bbaggins,dc=net
cn: /h

dn: cn=/share,ou=auto.master,dc=bbaggins,dc=net
objectClass: automount
automountInformation: ldapu=auto.misc,dc=bbaggins,dc=net
cn: /share
================================

However, when I try to add the entries, I get the following:


# ldapadd -a -W -x -D "cn=root,dc=bbaggins,dc=net" -f ~/auto.master.ldif
Enter LDAP Password:
adding new entry "ou=auto.master,dc=bbaggins,dc=net"
ldap_add: Invalid syntax (21)
additional info: objectClass: value #1 invalid per syntax


The schemas which I am including in the slapd.conf file are:
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/samba.schema
include /etc/openldap/schema/misc.schema

Any ideas where I might be missing something???

--
Chuck Tryon
at yahoo.com / chucktryon
 
Reply With Quote
 
 
 
 
Ashish Shukla आशीष शुक्ल
Guest
Posts: n/a

 
      01-20-2008, 07:23 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> Charles Tryon writes:


Charles> I've been working on getting an LDAP server up and running, inan
Charles> attempt to replace my old NIS service. I've used the following
Charles> tutorial to get much of the service up and running -- in particular
Charles> getting user names and passwords working so I can have a common
Charles> authentication model.

Charles> http://www.linuxjournal.com/article/8119

Charles> I'm hoping at some point to be able to tie in LDAP and Samba so I can
Charles> unify my logins across both Linux and Windows, but that's another
Charles> thread...

Charles> The one problem I'm stuck on however is specifying the automount
Charles> sources. I was able to do this in NIS by specifying the automount
Charles> maps, in particular for auto.home.

Charles> I am building this on a reasonably clean install of a Fedora-7
Charles> server. Following the tutorial, I've created the following
Charles> auto.master.ldif:

Charles> ================================
Charles> dn: ou=auto.master,dc=bbaggins,dc=net
Charles> objectClass: top
Charles> objectClass: automountMap
Charles> ou: auto.master

Charles> dn: cn=/h,ou=auto.master,dc=bbaggins,dc=net
Charles> objectClass: automount
Charles> automountInformation: ldapu=auto.home,dc=bbaggins,dc=net
Charles> cn: /h

Charles> dn: cn=/share,ou=auto.master,dc=bbaggins,dc=net
Charles> objectClass: automount
Charles> automountInformation: ldapu=auto.misc,dc=bbaggins,dc=net
Charles> cn: /share
Charles> ================================

Charles> However, when I try to add the entries, I get the following:


Charles> # ldapadd -a -W -x -D "cn=root,dc=bbaggins,dc=net" -f ~/auto.master.ldif
Charles> Enter LDAP Password:
Charles> adding new entry "ou=auto.master,dc=bbaggins,dc=net"
Charles> ldap_add: Invalid syntax (21)
Charles> additional info: objectClass: value #1 invalid per syntax


Charles> The schemas which I am including in the slapd.conf file are:
Charles> include /etc/openldap/schema/core.schema
Charles> include /etc/openldap/schema/cosine.schema
Charles> include /etc/openldap/schema/inetorgperson.schema
Charles> include /etc/openldap/schema/nis.schema
Charles> include /etc/openldap/schema/samba.schema
Charles> include /etc/openldap/schema/misc.schema

Charles> Any ideas where I might be missing something???

IIRC, none of the above schemas, has "automountMap" type defined. You
need to include a schema which "automountMap" type defined. Check out
the configuration at URL you mentioned.

HTH
- --
Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHk63mHy+EEHYuXnQRAosXAKCikKKdyYdjeTvfZ2uRt4 4fsX/cnwCfSmgw
zP77oCCdDb0w6Al4G+9FZsk=
=dtwo
-----END PGP SIGNATURE-----
 
Reply With Quote
 
Deepak.Verma3441@gmail.com
Guest
Posts: n/a

 
      01-21-2008, 04:23 PM
Hi Charles,
Find complete LDAP book here:
http://jumbooks.com/books/Computers%...ory%20services

It may help you.

On Jan 20, 8:39 am, Charles Tryon <chucktr...@yahoo.com> wrote:
> I've been working on getting an LDAP server up and running, in an
> attempt to replace my old NIS service. I've used the following tutorial
> to get much of the service up and running -- in particular getting user
> names and passwords working so I can have a common authentication model.
>
> http://www.linuxjournal.com/article/8119
>
> I'm hoping at some point to be able to tie in LDAP and Samba so I can
> unify my logins across both Linux and Windows, but that's another thread...
>
> The one problem I'm stuck on however is specifying the automount
> sources. I was able to do this in NIS by specifying the automount maps,
> in particular for auto.home.
>
> I am building this on a reasonably clean install of a Fedora-7
> server. Following the tutorial, I've created the following
> auto.master.ldif:
>
> ================================
> dn: ou=auto.master,dc=bbaggins,dc=net
> objectClass: top
> objectClass: automountMap
> ou: auto.master
>
> dn: cn=/h,ou=auto.master,dc=bbaggins,dc=net
> objectClass: automount
> automountInformation: ldapu=auto.home,dc=bbaggins,dc=net
> cn: /h
>
> dn: cn=/share,ou=auto.master,dc=bbaggins,dc=net
> objectClass: automount
> automountInformation: ldapu=auto.misc,dc=bbaggins,dc=net
> cn: /share
> ================================
>
> However, when I try to add the entries, I get the following:
>
> # ldapadd -a -W -x -D "cn=root,dc=bbaggins,dc=net" -f ~/auto.master.ldif
> Enter LDAP Password:
> adding new entry "ou=auto.master,dc=bbaggins,dc=net"
> ldap_add: Invalid syntax (21)
> additional info: objectClass: value #1 invalid per syntax
>
> The schemas which I am including in the slapd.conf file are:
> include /etc/openldap/schema/core.schema
> include /etc/openldap/schema/cosine.schema
> include /etc/openldap/schema/inetorgperson.schema
> include /etc/openldap/schema/nis.schema
> include /etc/openldap/schema/samba.schema
> include /etc/openldap/schema/misc.schema
>
> Any ideas where I might be missing something???
>
> --
> Chuck Tryon
> at yahoo.com / chucktryon


 
Reply With Quote
 
Charles Tryon
Guest
Posts: n/a

 
      01-28-2008, 09:49 PM
Ashish Shukla आशीष शुक्ल wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>>>>>> Charles Tryon writes:

>
> Charles> I've been working on getting an LDAP server up and running, in an
> Charles> attempt to replace my old NIS service. I've used the following
> Charles> tutorial to get much of the service up and running -- in particular
> Charles> getting user names and passwords working so I can have a common
> Charles> authentication model.
>
> Charles> http://www.linuxjournal.com/article/8119
>
> Charles> I'm hoping at some point to be able to tie in LDAP and Samba so I can
> Charles> unify my logins across both Linux and Windows, but that's another
> Charles> thread...
>
> Charles> The one problem I'm stuck on however is specifying the automount
> Charles> sources. I was able to do this in NIS by specifying the automount
> Charles> maps, in particular for auto.home.
>
> Charles> I am building this on a reasonably clean install of a Fedora-7
> Charles> server. Following the tutorial, I've created the following
> Charles> auto.master.ldif:
>
> Charles> ================================
> Charles> dn: ou=auto.master,dc=bbaggins,dc=net
> Charles> objectClass: top
> Charles> objectClass: automountMap
> Charles> ou: auto.master
>
> Charles> dn: cn=/h,ou=auto.master,dc=bbaggins,dc=net
> Charles> objectClass: automount
> Charles> automountInformation: ldapu=auto.home,dc=bbaggins,dc=net
> Charles> cn: /h
>
> Charles> dn: cn=/share,ou=auto.master,dc=bbaggins,dc=net
> Charles> objectClass: automount
> Charles> automountInformation: ldapu=auto.misc,dc=bbaggins,dc=net
> Charles> cn: /share
> Charles> ================================
>
> Charles> However, when I try to add the entries, I get the following:
>
>
> Charles> # ldapadd -a -W -x -D "cn=root,dc=bbaggins,dc=net" -f ~/auto.master.ldif
> Charles> Enter LDAP Password:
> Charles> adding new entry "ou=auto.master,dc=bbaggins,dc=net"
> Charles> ldap_add: Invalid syntax (21)
> Charles> additional info: objectClass: value #1 invalid per syntax
>
>
> Charles> The schemas which I am including in the slapd.conf file are:
> Charles> include /etc/openldap/schema/core.schema
> Charles> include /etc/openldap/schema/cosine.schema
> Charles> include /etc/openldap/schema/inetorgperson.schema
> Charles> include /etc/openldap/schema/nis.schema
> Charles> include /etc/openldap/schema/samba.schema
> Charles> include /etc/openldap/schema/misc.schema
>
> Charles> Any ideas where I might be missing something???
>
> IIRC, none of the above schemas, has "automountMap" type defined. You
> need to include a schema which "automountMap" type defined. Check out
> the configuration at URL you mentioned.


After doing some more in-depth recursive greps, I discovered that there
was a .../schema/redhat/autofs.schema file which I have not included in
my slapd.conf file. This still hasn't solved my problem with being able
to add autofs entries, but it's a step closer. I think I still just
have to figure out the exact entries the schema is looking for in the
LDIF file.

--
Chuck Tryon

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP and Automount? Charles Tryon Linux Networking 0 12-15-2007 08:48 PM
"Schema update failed: duplicate OID." Error running adprep BW Windows Networking 0 06-18-2007 09:20 PM
Why is pktgen v1.3 causing an error message like this? (See message body) gregg.drwho8@gmail.com Linux Networking 0 12-29-2006 03:43 AM
Debian:Woody, trying to setup automount to query LDAP Dj Linux Networking 0 11-24-2003 09:10 PM
nfs shutdown error (automount) ched Linux Networking 0 09-22-2003 10:47 PM



1 2 3 4 5 6 7 8 9 10 11