smbpasswd and homeDirectory attr (ldap)

Ignacio Coupeau icoupeau at unav.es
Thu Oct 11 04:11:04 GMT 2001


"Gerald (Jerry) Carter" wrote:
> 
> On Wed, 10 Oct 2001, Andreas Hasenack wrote:
> 
> > It seems to me that smbpasswd, when adding specific samba attributes
> > to the ldap server, is using homeDirectory to store "\\%N\" instead of
> > some other samba specific attribute (smbHome?). homeDirectory is
> > RFC2307 specific, samba shouldn't change that to an UNC, right? Or am
> > I missing something?
> 
> I think I just fixed this earlier today.
> 

I tested it and runs but the sambaAccount should be fixed adding the
smbHome attr:

> objectclass ( 1.3.1.5.1.4.1.7165.2.2.2 NAME 'sambaAccount' SUP top STRUCTURAL
>         DESC 'Samba Account'
>         MUST ( uid $ uidNumber )
>         MAY  ( cn $ gidNumber $ lmPassword $ ntPassword $ pwdLastSet $ logonTime $
>                logoffTime $ kickoffTime $ pwdCanChange $ pwdMustChange $ acctFlags $
>                displayName $ homeDirectory $ homeDrive $ scriptPath $ profilePath $
>                description $ userWorkstations $ rid $ primaryGroupID $ smbHome ))

... perhaps the (rid: 0) may cause a trouble:

> 
> dn: uid=gopher, o=smb, dc=unav, dc=es
> cn: gopher
> objectClass: sambaAccount
> gidNumber: 50
> uid: gopher
> uidNumber: 13
> pwdLastSet: 0
> logonTime: 0
> logoffTime: 0
> kickoffTime: 0
> pwdCanChange: 0
> pwdMustChange: 0
> smbHome: \\%N\
> homeDrive: U:
> profilePath: \\%N\\profile
> rid: 0
> primaryGroupID: 0

Ignacio
-- 
____________________________________________________
Ignacio Coupeau, Ph.D.     e-mail: icoupeau at unav.es
CTI, Director              fax:    948 425619
University of Navarra      voice:  948 425600
Pamplona, SPAIN            http://www.unav.es/cti/




More information about the samba-technical mailing list