[Samba] New attributes on Samba 4
Jonathan Hunter
jmhunter1 at gmail.com
Mon Oct 31 00:45:36 UTC 2016
Hi,
On 17 October 2016 at 17:36, Marc Muehlfeld via samba
<samba at lists.samba.org> wrote:
> Am 17.10.2016 um 18:16 schrieb Rowland Penny via samba:
>> Well, not as is, when I tried adding schema extensions, I had to add
>> the attributes first, then the objectlasses, I couldn't add them all in
>> one go.
>[...]
> Are there any rules for the LDIF file, such as attribute first,
> objectclasses later?
>
I've done this successfully (and indeed heavily use the new attributes
and objectclasses I have added).
I've got a .cmd batch file that does it automatically if run as a
domain admin user (enterprise admin user?) on a DC.
>From my batch file:
ECHO Adding attributes ...
CALL :ldifimport AD-my-attribs.ldif
ECHO Forcing schema cache update ...
CALL :ldifimport AD-schemaupdate.ldif
ECHO Adding classes ...
CALL :ldifimport AD-my-classes.ldif
The contents of AD-schemaupdate.ldif is as follows:
DN:
changetype: modify
add: schemaUpdateNow
schemaUpdateNow: 1
-
The whole process works automatically, I can share the batch file if
it helps anyone.
Cheers
Jonathan
--
"If we knew what it was we were doing, it would not be called
research, would it?"
- Albert Einstein
More information about the samba
mailing list