• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
OpenDirectory: creating a LocalCachedUser?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OpenDirectory: creating a LocalCachedUser?


  • Subject: OpenDirectory: creating a LocalCachedUser?
  • From: Brian Bergstrand <email@hidden>
  • Date: Tue, 9 May 2006 17:05:26 -0500

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

So I've got a DirectoryServices plugin going and I can do authentication to the remote DS server:

$ dscl /NDS/PROSOFT -authonly frodo.users
Password:

$ dscl /NDS/PROSOFT/frodo.users -read /
PrimaryGroupID: c7590d23
AccountName: frodo
UniqueID: c7590d23
NodePath: NDS PROSOFT frodo.users
UserShell: /bin/bash
AuthenticationAuthority: ;LocalCachedUser;
GeneratedUID: 00D61774-D651-D811-B0B8-0004757FF7AD
RecordType: Users
RealName: Frodo Baggins
$

How do I now turn this user record into a local cached user so that a user can actually login to the GUI using only the remote DS credentials?

What I need to do:

Create local user record.
Create local user home directory.
Mount network home directory for file access (this part is easy once I know where to do it).


Also, regarding the UID/GID, I'm assuming a ID space of 0-2^31. In the above example, the UID/GID is a hash of the UUID string. Is this a valid # for Tiger/Panther or is the ID space limited to 2^16?

Here's the DS Requests that I currently respond to:

kOpenDirNode
kCloseDirNode
kGetDirNodeInfo
kGetAttributeEntry
kGetAttributeValue
kDoDirNodeAuth
kCloseAttributeList
kCloseAttributeValueList
kDoDirNodeAuthOnRecordType

As you can see I'm implementing the bare minimum to get auth working. This is not meant to provide full blown access to the remote DS.

Any pointers would be greatly appreciated. Thanks.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFEYRIredHYW7bHtqIRAnkmAJ9NcXIs0E5SUSYrzxphG8P4JikJxwCfaR+u
afPG31K36Dg8jnAJuwdxtEg=
=Ur9A
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: OpenDirectory: creating a LocalCachedUser?
      • From: Michael Bartosh <email@hidden>
  • Prev by Date: Re: gettimeofday cost on intel?
  • Next by Date: Shared mmap and data consistency upon a crash
  • Previous by thread: Re: gettimeofday cost on intel?
  • Next by thread: Re: OpenDirectory: creating a LocalCachedUser?
  • Index(es):
    • Date
    • Thread