[Samba] template homedir question

Gerald (Jerry) Carter jerry at samba.org
Wed Dec 10 20:28:29 GMT 2008


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

Derek,

Can you send me you patch to review ?



cheers, jerry



Derek Harkness wrote:
> Okay I'm a bit lost at this point.  I've got created an idmap plugin
> that loads and does some useful stuff for me but I'm still having a
> rough time with the homedir.
> 
> I've been working this the nss_*_get_info() using nss_rfc2307_get_info()
> and nss_sfu_get_info() as a guide and the big problem I've run into at
> this point it I don't know the username of the user I'm creating the
> homedir for.  Variable substitution happens after I munge the homedir
> string so, any suggestions on where I can get the username would help.
> 
> Thanks,
> Derek
> 
> On Dec 2, 2008, at 11:04 AM, Gerald (Jerry) Carter wrote:
> 
> Derek Harkness wrote:
>>>> Hello All,
>>>>
>>>> I'm integrating an existing unix environment into an exist AD
>>>> environment.  I'm thinking of switching from nssldap to nss_winbind but
>>>> have one problem.  My user's home directories are in the format of
>>>> /home/user/<$first letter>/<$second letter>/<$username>
>>>> (/home/user/d/h/dhaknes).  Looking at the template homedir it doesn't
>>>> appear that I can use this format.  Is there away to pull the first and
>>>> second letters of the username as variables to use in template homedir?
> 
> No but this would be easy to implement.  The nss_info API allows
> you to write a new plugin.  if you code in C, I can point you right
> at what to do.  Maybe an hour's work.
> 
>>>> Side question, I'm looking at using pam_mkhomedir and
>>>> it is creating home directories for computer accounts
>>>> is there anyway to prevent that?
> 
> Not really.  A Computer object is derived from a user object
> in AD.  SO both share the same set of base attributes
> (i.e. a computer is just a special type of user).
> 
> 
> 
> 
> cheers, jerry

- --
=====================================================================
Samba                                    ------- http://www.samba.org
Likewise Software          ---------  http://www.likewisesoftware.com
"What man is a man who does not make the world better?"      --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJQCZoIR7qMdg1EfYRAjk/AJ9mQgSXs+qIvhl52i/PXKbt/x88QwCeL3zJ
+NgMhTw9Y6dRvs0SIUXF714=
=bgrB
-----END PGP SIGNATURE-----


More information about the samba mailing list