b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose ID-mapping library - private headers
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose Sumit Bose <sbose@redhat.com>
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose Copyright (C) 2012 Red Hat
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose This program is free software; you can redistribute it and/or modify
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose it under the terms of the GNU General Public License as published by
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose the Free Software Foundation; either version 3 of the License, or
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose (at your option) any later version.
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose This program is distributed in the hope that it will be useful,
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose but WITHOUT ANY WARRANTY; without even the implied warranty of
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose GNU General Public License for more details.
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose You should have received a copy of the GNU General Public License
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose along with this program. If not, see <http://www.gnu.org/licenses/>.
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose if (ctx == NULL || ctx->alloc_func == NULL || ctx->free_func == NULL) { \
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek /* true if autorid compatibility mode is used */
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek /* smallest available id (for all domains) */
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek /* highest available id (for all domains) */
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek /* number of available UIDs (for single domain) */
8babbeee01e67893af4828ddfc922ecac0be4197Pavel Reichl /* maximal number of secondary slices */
2998435fcc95857b73049b3955af9889ab595f24Sumit Bose/* This is a copy of the definition in the samba gen_ndr/security.h header
2998435fcc95857b73049b3955af9889ab595f24Sumit Bose * file. We use it here to be able to offer conversions form struct dom_sid to
2998435fcc95857b73049b3955af9889ab595f24Sumit Bose * string or binary representation since those are not made available by
2998435fcc95857b73049b3955af9889ab595f24Sumit Bose * public samba libraries.
2998435fcc95857b73049b3955af9889ab595f24Sumit Bose * If the definition ever changes on the samba side we have to adopt the
2998435fcc95857b73049b3955af9889ab595f24Sumit Bose * change. But chances are very low that this will ever happen since e.g. this
2998435fcc95857b73049b3955af9889ab595f24Sumit Bose * struct is also defined in public documentation from Microsoft. See e.g.
2998435fcc95857b73049b3955af9889ab595f24Sumit Bose * section 2.4.2.3 of "[MS-DTYP]: Windows Data Types"
2998435fcc95857b73049b3955af9889ab595f24Sumit Bose * http://msdn.microsoft.com/en-us/library/cc230364(v=prot.10)
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose#endif /* SSS_IDMAP_PRIVATE_H_ */