LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-08-2006, 03:12 PM   #1
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
Trouble with auto.master and LDAP


Being new to LDAP I am having a hard time getting autofs+LDAP to work. I have the following LDIF file that refuses to get loaded when I try to merge it:

Code:
dn: ou=auto.master,dc=yallanet,dc=com
ou: auto.master
objectClass: top
objectClass: automountMap

dn: ou=auto.home,dc=yallanet,dc=com
ou: auto.home
objectclass: top
objectClass: organizationalUnit

dn: cn=/home,ou=auto.master,dc=yallanet,dc=com
objectClass: automount
automountInformation: ldap:majestix.yallanet.com:ou=auto.home,dc=yallanet,dc=com --timeout 60
cn: /home

dn: cn=yallaone,ou=auto.home,dc=yallanet,dc=com
objectClass: automount
description: yallaone home dir
automountInformation: -rw,hard,intr asterix:/export/home/yallaone
cn: yallaone
I try adding it with this command:
Code:
ldapadd -x -D "cn=Manager,dc=yallanet,dc=com" -c -W -f automount.ldif
And get the following result:

Code:
Enter LDAP Password:
adding new entry "ou=auto.master,dc=yallanet,dc=com"
ldap_add: Invalid syntax (21)
        additional info: objectClass: value #1 invalid per syntax

adding new entry "ou=auto.home,dc=yallanet,dc=com"
ldap_add: Already exists (68)

adding new entry "cn=/home,ou=auto.master,dc=yallanet,dc=com"
ldap_add: Invalid syntax (21)
        additional info: objectClass: value #0 invalid per syntax

adding new entry "cn=yallaone,ou=auto.home,dc=yallanet,dc=com"
ldap_add: Invalid syntax (21)
        additional info: objectClass: value #0 invalid per syntax
I've spent a good 8-10 hours on this one today and have now hit a solid brick wall and would thus appreciate any hints on how to proceed.

PS. My passwd, group and shadow went beautifully in...
PPS. I have included nis, inetorgperson, cosine and core schemas
PPPS. Have not enabled any authentication yet - figured I'd better get the basics going before starting to restrict myself...

Thanks much for any insight!

-Y1
 
Old 04-09-2006, 11:51 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Hi Yalla-one

Did you include the autofs.schema as well? If you didn't and need it, I have saved a copy for you at http://sox.homeip.net/autofs.schema

And by the way, I searched a little, and found this article: http://www.linuxjournal.com/comment/reply/8119 which has a really different build-up of the auto.home branch. Maybe you can compare your approach to the LJ tutorial.

Good luck!

Eric
 
Old 04-11-2006, 05:04 PM   #3
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
Thanks much - now I have a goal for the Easter holidays Have printed both approaches and will see which works, and then report back if/when successful.

Happy holidays!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP: Can't contact master ldap server rulirahm Linux - Networking 2 07-14-2014 02:02 AM
ldap replication master - slave jadid Linux - Software 2 10-18-2006 11:25 AM
browse option for auto.master for yp mounts azhiker Linux - Networking 2 04-16-2005 11:13 AM
auto.master hansi umayangan Linux - General 1 03-12-2005 05:55 PM
autofs enabled in kernel but auto.mount and auto.master are NOT in /etc! Alybyzrp Linux - General 0 11-11-2003 12:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration