Re: Samba schema not loading in FDS...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2006-03-01 at 19:12 -0700, Richard Megginson wrote:

> This is what I did:
> cd /opt/fedora-ds/slapd-localhost/config/schema
> perl ~/ol2rhds.pl < /usr/share/doc/samba-3.0.14a/LDAP/samba.schema > 
> 61samba.ldif
> # http://www.directory.fedora.redhat.com/download/ol2rhds.pl
> ../../restart-slapd
> ldapsearch -x -h localhost -p myport -s base -b "cn=schema" 
> "objectclass=*" | grep -i samba
> 

I just did those exact same steps myself and there does appear to be a
problem.  They "MAY" portions of the schema get dropped.  Here is the
sambaSamAccount from my converted schema:

objectClasses: (
  1.3.6.1.4.1.7165.2.2.6
 NAME 'sambaSamAccount'
 DESC 'Samba 3.0 Auxilary SAM Account'
 SUP top
 AUXILIARY
 MUST ( uid $ sambaSID )
 )


and here is the sambaSamAccount from the /usr/share/doc/ samba.schema:
objectclass ( 1.3.6.1.4.1.7165.2.2.6 NAME 'sambaSamAccount' SUP top
AUXILIARY
        DESC 'Samba 3.0 Auxilary SAM Account'
        MUST ( uid $ sambaSID )
        MAY  ( cn $ sambaLMPassword $ sambaNTPassword $ sambaPwdLastSet
$
               sambaLogonTime $ sambaLogoffTime $ sambaKickoffTime $
               sambaPwdCanChange $ sambaPwdMustChange $ sambaAcctFlags $
               displayName $ sambaHomePath $ sambaHomeDrive $
sambaLogonScript $               sambaProfilePath $ description $
sambaUserWorkstations $
               sambaPrimaryGroupSID $ sambaDomainName $ sambaMungedDial
$
               sambaBadPasswordCount $ sambaBadPasswordTime $
               sambaPasswordHistory $ sambaLogonHours))



Without the 'MAY' portion, when I import my directory dump from
OpenLDAP, any accounts that have any of those samba attributes set (all
of them unfortunately) don't import because of the invalid attributes.

Looks like it's a bug in the ol2rhds.pl script.

-- 
David Hollis <dhollis@xxxxxxxxxxxxxx>

Attachment: signature.asc
Description: This is a digitally signed message part

--
Fedora-directory-users mailing list
Fedora-directory-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-directory-users

[Index of Archives]     [Fedora Directory Users]     [Fedora Directory Devel]     [Fedora Announce]     [Fedora Legacy Announce]     [Kernel]     [Fedora Legacy]     [Share Photos]     [Fedora Desktop]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux