[Samba] Provisioning AD DC, MS-AD_Schema_2K8_R2_Attributes.txt Not found

IT Admin it at cliffbells.com
Sun Jan 10 21:47:21 UTC 2016


I ran apt-get remove --purge samba.

What is the proper procedure to remove it?

I've moved past this particular error by copying the files to that location
but have hit a new snag, how do I completely wipe out all traces of the old
packages?

JS
On Jan 8, 2016 9:34 PM, "IT Admin" <it at cliffbells.com> wrote:

> Hi,
>
> I just removed the Canonical repo's Samba and compiled the latest version
> by running './configure', 'make', and 'sudo make install'.  Everything went
> fine with that process, however, I've run into a snag when attempting to
> provision Samba as an ADC.
>
> I'm getting the following error:
>
> ERROR(<type 'exceptions.IOError'>): uncaught exception - [Errno 2] No such
> file or directory:
> '/usr/share/samba/setup/ad-schema/MS-AD_Schema_2K8_R2_Attributes.txt'
>   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line
> 175, in _run
>     return self.run(*args, **kwargs)
>   File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line
> 401, in run
>     use_rfc2307=use_rfc2307, skip_sysvolacl=False)
>   File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py",
> line 2068, in provision
>     schemadn=names.schemadn)
>   File "/usr/lib/python2.7/dist-packages/samba/schema.py", line 88, in
> __init__
>     setup_path('ad-schema/MS-AD_Schema_2K8_R2_Classes.txt'))
>   File "/usr/lib/python2.7/dist-packages/samba/ms_schema.py", line 274, in
> read_ms_schema
>     attr_ldif =  __parse_schema_file(attr_file, "attributeSchema")
>   File "/usr/lib/python2.7/dist-packages/samba/ms_schema.py", line 260, in
> __parse_schema_file
>     f = open(filename, "rU")
>
>
> I have the required file:
>
> itwerks at filer:~$ locate ad-schema
> /home/itwerks/samba-4.3.3/bin/default/source4/setup/ad-schema
> /home/itwerks/samba-4.3.3/source4/setup/ad-schema
>
> /home/itwerks/samba-4.3.3/source4/setup/ad-schema/MS-AD_Schema_2K8_Attributes.txt
>
> /home/itwerks/samba-4.3.3/source4/setup/ad-schema/MS-AD_Schema_2K8_Classes.txt
>
> /home/itwerks/samba-4.3.3/source4/setup/ad-schema/MS-AD_Schema_2K8_R2_Attributes.txt
>
> /home/itwerks/samba-4.3.3/source4/setup/ad-schema/MS-AD_Schema_2K8_R2_Classes.txt
> /home/itwerks/samba-4.3.3/source4/setup/ad-schema/licence.txt
> /usr/local/samba/share/setup/ad-schema
> /usr/local/samba/share/setup/ad-schema/MS-AD_Schema_2K8_Attributes.txt
> /usr/local/samba/share/setup/ad-schema/MS-AD_Schema_2K8_Classes.txt
> /usr/local/samba/share/setup/ad-schema/MS-AD_Schema_2K8_R2_Attributes.txt
> /usr/local/samba/share/setup/ad-schema/MS-AD_Schema_2K8_R2_Classes.txt
>
>
> How do I fix this?
>
> Thanks,
>
> JS
>


More information about the samba mailing list