Krusty Ruffle
September 12th, 2007, 10:48 AM
Background: I'm building a server to take care of central login information, etc in my home. I have to maintain a mixed windows/linux environment. So far I have LDAP taking care of logon information with samba for the windows machines. I am able to join the windows machines to the domain and logons work fine there, (though the Default User profile is not being used, but that is a different issue). On Linux machines, I am able to use the LDAP server to get logon information, but I cannot get it to automount the home directories.
I have followed the autofs-LDAP page at help.ubuntu.com (https://help.ubuntu.com/community/AutofsLDAP) but I see the following problems, all of which are on the client machine:
during boot up I get:
Starting automounter: loading autofs4 kernel module, no automount maps defined.
If I do sudo /etc/init.d/autofs reload I get:
Reloading automounter: checking for changes ...
Started automounter: /home
and with cat /var/log/syslog | grep auto I get:
automount[6371]: lookup(ldap): query failed for (objectclass=nisObject): No such object
automount[6371]: lookup(ldap): query failed for (objectclass=automount): No such object
automount[6371]: failed to load map, exiting
ldapsearch -x from the same machine gives me, (this is trimmed down and names have been editted etc..):
# extended LDIF
#
# LDAPv3
# base <> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# mydomain.name
dn: dc=mydomain,dc=name
objectClass: top
objectClass: dcObject
objectClass: organization
o: Fake Company Name
dc: mydomain
# admin, mydomain.name
dn: cn=admin,dc=mydomain,dc=name
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator
<=-SNIP-=>
# firstname, Users, mydomain.name
dn: uid=firstname,ou=Users,dc=mydomain,dc=name
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
objectClass: sambaSamAccount
objectClass: inetLocalMailRecipient
cn: firstname
sn: firstname
givenName: firstname
uid: firstname
uidNumber: 1000
gidNumber: 513
homeDirectory: /home/firstname
loginShell: /bin/bash
gecos: firstname lastname
sambaLogonTime: 0
sambaLogoffTime: 2147483647
sambaKickoffTime: 2147483647
sambaPwdCanChange: 0
displayName: firstname lastname
sambaSID: S-1-5-21-682434482-3196215736-3921645463-3000
sambaLogonScript: logon.bat
sambaPrimaryGroupSID: S-1-5-21-682434482-3196215736-3921645463-513
sambaHomeDrive: Y:
mailLocalAddress: firstname.lastname
mail: firstname.lastname@mydomain.name
sambaAcctFlags: [U]
sambaPwdLastSet: 1189385161
sambaPwdMustChange: 1193273161
<-=SNIP=->
# admin, mydomain.name
dn: ou=admin,dc=mydomain,dc=name
ou: admin
objectClass: top
objectClass: organizationalUnit
# automount, admin, mydomain.name
dn: ou=automount,ou=admin,dc=mydomain,dc=name
ou: automount
objectClass: top
objectClass: organizationalUnit
# auto.master, automount, admin, mydomain.name
dn: ou=auto.master,ou=automount,ou=admin,dc=mydomain,d c=name
ou: auto.master
objectClass: top
objectClass: automountMap
# /home, auto.master, automount, admin, mydomain.name
dn: cn=/home,ou=auto.master,ou=automount,ou=admin,dc=mydom ain,dc=name
cn: /home
objectClass: top
objectClass: automount
automountInformation: ldap:ou=auto.home,ou=automount,ou=
admin,dc=example,dc=com --timeout=60 --ghost
# firstname, auto.home, automount, admin, mydomain.name
dn: cn=firstname,ou=auto.home,ou=automount,ou=admin,dc =mydomain,dc=name
cn: firstname
objectClass: top
objectClass: automount
automountInformation: -fstype=nfs,rw,hard,intr,nodev,exec,nosuid,rsize=81 92,ws
ize=8192 nfs.mydomain.name:/home/firstname
I've been searching the net for several days trying to resolve this, any help is greatly appreciated...
I have followed the autofs-LDAP page at help.ubuntu.com (https://help.ubuntu.com/community/AutofsLDAP) but I see the following problems, all of which are on the client machine:
during boot up I get:
Starting automounter: loading autofs4 kernel module, no automount maps defined.
If I do sudo /etc/init.d/autofs reload I get:
Reloading automounter: checking for changes ...
Started automounter: /home
and with cat /var/log/syslog | grep auto I get:
automount[6371]: lookup(ldap): query failed for (objectclass=nisObject): No such object
automount[6371]: lookup(ldap): query failed for (objectclass=automount): No such object
automount[6371]: failed to load map, exiting
ldapsearch -x from the same machine gives me, (this is trimmed down and names have been editted etc..):
# extended LDIF
#
# LDAPv3
# base <> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# mydomain.name
dn: dc=mydomain,dc=name
objectClass: top
objectClass: dcObject
objectClass: organization
o: Fake Company Name
dc: mydomain
# admin, mydomain.name
dn: cn=admin,dc=mydomain,dc=name
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator
<=-SNIP-=>
# firstname, Users, mydomain.name
dn: uid=firstname,ou=Users,dc=mydomain,dc=name
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
objectClass: sambaSamAccount
objectClass: inetLocalMailRecipient
cn: firstname
sn: firstname
givenName: firstname
uid: firstname
uidNumber: 1000
gidNumber: 513
homeDirectory: /home/firstname
loginShell: /bin/bash
gecos: firstname lastname
sambaLogonTime: 0
sambaLogoffTime: 2147483647
sambaKickoffTime: 2147483647
sambaPwdCanChange: 0
displayName: firstname lastname
sambaSID: S-1-5-21-682434482-3196215736-3921645463-3000
sambaLogonScript: logon.bat
sambaPrimaryGroupSID: S-1-5-21-682434482-3196215736-3921645463-513
sambaHomeDrive: Y:
mailLocalAddress: firstname.lastname
mail: firstname.lastname@mydomain.name
sambaAcctFlags: [U]
sambaPwdLastSet: 1189385161
sambaPwdMustChange: 1193273161
<-=SNIP=->
# admin, mydomain.name
dn: ou=admin,dc=mydomain,dc=name
ou: admin
objectClass: top
objectClass: organizationalUnit
# automount, admin, mydomain.name
dn: ou=automount,ou=admin,dc=mydomain,dc=name
ou: automount
objectClass: top
objectClass: organizationalUnit
# auto.master, automount, admin, mydomain.name
dn: ou=auto.master,ou=automount,ou=admin,dc=mydomain,d c=name
ou: auto.master
objectClass: top
objectClass: automountMap
# /home, auto.master, automount, admin, mydomain.name
dn: cn=/home,ou=auto.master,ou=automount,ou=admin,dc=mydom ain,dc=name
cn: /home
objectClass: top
objectClass: automount
automountInformation: ldap:ou=auto.home,ou=automount,ou=
admin,dc=example,dc=com --timeout=60 --ghost
# firstname, auto.home, automount, admin, mydomain.name
dn: cn=firstname,ou=auto.home,ou=automount,ou=admin,dc =mydomain,dc=name
cn: firstname
objectClass: top
objectClass: automount
automountInformation: -fstype=nfs,rw,hard,intr,nodev,exec,nosuid,rsize=81 92,ws
ize=8192 nfs.mydomain.name:/home/firstname
I've been searching the net for several days trying to resolve this, any help is greatly appreciated...