Home › Forums › OS X Server and Client Discussion › Open Directory › How to get NFSHomeDirectory working?
- This topic has 1 reply, 1 voice, and was last updated 19 years ago by
steffi.
-
AuthorPosts
-
October 21, 2007 at 4:35 pm #370248
steffi
Participantsteffi
ProspectJoin Date: Jun 2003
Posts: 10
How to get NFSHomeDirectory working?
So I recently picked up a ReadyNAS and I was hoping to get portable home directories working with my macbook pro. So I’ve installed openldap and loaded it with a couple of user records but even though Address Book etc see the ldap DirectoryServices complains at boot with.Note: At no time am I offered the create mobile account option in System Preferences for these users.
Oct 21 09:27:27 audrey DirectoryService[83]: LDAPv3: SafeOpen Cannot retrieve ser
ver mappings at this time.
Oct 21 09:35:11 audrey DirectoryService[83]: DSLDAPv3PlugIn: Server Mappings for
[localhost] LDAP server not found.
Oct 21 09:35:11 audrey DirectoryService[83]: DSLDAPv3PlugIn: [localhost] LDAP ser
ver config not updated with server mappings due to server mappings error.
Oct 21 09:35:11 audrey DirectoryService[83]: LDAPv3: SafeOpen Can’t retrieve serv
er mappings from search base of.
Oct 21 09:35:11 audrey DirectoryService[83]: LDAPv3: SafeOpen Cannot retrieve ser
ver mappings at this time.
Oct 21 09:35:14 audrey DirectoryService[83]: DSLDAPv3PlugIn: Server Mappings for
[localhost] LDAP server not found.etc….
This is probably because LDAP isn’t running at this time.
Q. Using SystemStarter how can you get LDAP to run before mach_init.d runs it’s stuff including DirectoryService? Presumably the ldap server needs to be up and running before DirectoryService tries to obtain it’s mappings.
Also, when the LDAP server is running _After_ logging using -d 255 for debug information
if I typeaudrey:~ robert$ dscl localhost -read /Search/Users/test NFSHomeDirectory
NFSHomeDirectory: /Users/testThat’s not what I want to see
my LDAP setup looks like this
extended LDIF
#
# LDAPv3
# base <> with scope sub
# filter: (objectclass=*)
# requesting: ALL
## elastica.com
dn: dc=elastica,dc=com
dc: elastica
objectClass: top
objectClass: domain# People, elastica.com
dn: ou=People,dc=elastica,dc=com
ou: People
objectClass: top
objectClass: organizationalUnit# Group, elastica.com
dn: ou=Group,dc=elastica,dc=com
ou: Group
objectClass: top
objectClass: organizationalUnit# robert, Group, elastica.com
dn: cn=robert,ou=Group,dc=elastica,dc=com
objectClass: posixGroup
objectClass: top
cn: robert
userPassword:: XXXXXXXXXXXX
gidNumber: 501# robert, People, elastica.com
dn: uid=robert,ou=People,dc=elastica,dc=com
uid: robert
cn: Robert Nicholson
objectClass: apple-user
objectClass: account
objectClass: posixAccount
objectClass: top
userPassword:: XXXXXXXXXXXXX
loginShell: /bin/bash
uidNumber: 501
gidNumber: 501
homeDirectory: /Network/Servers/192.168.1.138/robert
apple-user-homeDirectory: /Network/Servers/192.168.1.138/robert
gecos: Robert Nicholson,,,
authAuthority: ;basic;# test, People, elastica.com
dn: uid=test,ou=People,dc=elastica,dc=com
uid: test
cn: Test
objectClass: apple-user
objectClass: account
objectClass: posixAccount
objectClass: top
userPassword:: XXXXXXXXXXXXX
loginShell: /bin/bash
uidNumber: 504
gidNumber: 504
homeDirectory: /Network/Servers/192.168.1.138/test
apple-user-homeDirectory: /Network/Servers/192.168.1.138/test
gecos: Test,,,
authAuthority: ;basic;# test, Group, elastica.com
dn: cn=test,ou=Group,dc=elastica,dc=com
objectClass: posixGroup
objectClass: top
cn: test
userPassword:: XXXXXXXXX
gidNumber: 504# search result
search: 2
result: 0 Success# numResponses: 7
# numEntries: 6
audrey:~ robert$October 21, 2007 at 5:38 pm #370249steffi
Participantf I’m not mistaken it would appear that the trick to get all this working is that you cannot have a local account on the machine as well. ie. portable network homes only work for network accounts.
This leaves me at a place where I just need to know how to get LDAP working in such a way that it doesn’t have those mappings errors in the log upon boot because of DirectoryServices not being able to find it’s mappings.
-
AuthorPosts
- You must be logged in to reply to this topic.