s3-privileges: add handling of both old and new formats in database
authorAndrew Tridgell <tridge@samba.org>
Fri, 3 Sep 2010 06:33:41 +0000 (16:33 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 9 Sep 2010 04:46:01 +0000 (14:46 +1000)
commit8e443514075fa9ad0a357d2b6d8b1cfc246e876a
tree025f600d0f2fb7b65c7981bd08a99a528769e289
parent004fd1b31c0d8cacb5e3b90ac148ddd40b3f5f9a
s3-privileges: add handling of both old and new formats in database

We update privileges on a per-record basis instead of all at once, as
this maintains maximum compatibility is someone uses old tools with a
new version of Samba. The also auto-detects the byte order of the old
entries in the database, and copes with either native or reversed byte
order.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
source3/lib/privileges.c