Benches Uncategorized

2

Anybody got LDAP NFSHomeDirectory working in OSX? | Official Apple Support Communities

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I've got a Mac Book Pro and I've got openldap running on it but I could swear that when DirectoryServices kicks in it's too early because openldap isn't running yet but it to pull the mapping information from the server.

Anybody got openldap with portable home directories working with the readynas? In my case I just cannot get my account to work as a network account ie. use the home from the readynas instead of /Users/

Here's what my ldap setup looks like

audrey:~ robert$ ldapsearch -x
# 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:: XXXXXXXX
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:: XXXXXXXX
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:: XXXXXXXXX
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;

# search result
search: 2
result: 0 Success

# numResponses: 7
# numEntries: 6

2 replies

Sign in or join Beachball Help to reply.

  1. 0

    Robert Nicholson1

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Here's a follow up when openldap is running here's what dscl tells me

    audrey:~ robert$ dscl localhost -read /Search/Users/test NFSHomeDirectory
    NFSHomeDirectory: /Users/test

    Doesn't make sense to me.

    ldapsearch shows that I have

    # 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:: XXXXXXX
    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;

  2. 0

    Robert Nicholson1

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    If 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.