diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-07-22 18:04:58 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-07-22 18:04:58 +1000 |
commit | 1887ad0a26cca026c3503f0ef4e40f8eff42a121 (patch) | |
tree | b3eedb187d8d7ee41e5f52d4cd8107f034ba7fae /source4/scripting/python | |
parent | 605649edc3d3ce4f760b08fd8ee5684007369be8 (diff) | |
download | samba-1887ad0a26cca026c3503f0ef4e40f8eff42a121.tar.gz samba-1887ad0a26cca026c3503f0ef4e40f8eff42a121.tar.bz2 samba-1887ad0a26cca026c3503f0ef4e40f8eff42a121.zip |
s4:provision Fix provision on FreeBSD
We were missing the 'cn' attribute, which we then prepare a sorted
list based on. On Linux, strcmp(NULL, NULL) does not segfault, where
it does on FreeBSD.
Reported by Timur I. Bakeyev <timur@com.bat.ru>
Andrew Bartlett
Diffstat (limited to 'source4/scripting/python')
-rw-r--r-- | source4/scripting/python/samba/ms_schema.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/ms_schema.py b/source4/scripting/python/samba/ms_schema.py index 2e8050e503..a0abc337ce 100644 --- a/source4/scripting/python/samba/ms_schema.py +++ b/source4/scripting/python/samba/ms_schema.py @@ -226,6 +226,7 @@ def __transform_entry(entry, objectClass): assert(cn) entry.insert(0, ["dn", "CN=%s,${SCHEMADN}" % cn]) entry.insert(1, ["objectClass", ["top", objectClass]]) + entry.insert(2, ["cn", cn]) for l in entry: key = l[0].lower() |