struct nss_function_entry *prev, *next;
const char *name;
- struct nss_info_methods *methods;
+ const struct nss_info_methods *methods;
};
/* List of configured domains. Each domain points
const char *domain;
NTSTATUS init_status;
- struct nss_function_entry *backend;
+ const struct nss_function_entry *backend;
/* hold state on a per domain basis */
NTSTATUS smb_register_idmap_nss(int version,
const char *name,
- struct nss_info_methods *methods);
+ const struct nss_info_methods *methods);
NTSTATUS nss_map_to_alias( TALLOC_CTX *mem_ctx, const char *domain,
const char *name, char **alias );
/* The SFU and RFC2307 NSS plugins share everything but the init
function which sets the intended schema model to use */
-static struct nss_info_methods nss_rfc2307_methods = {
+static const struct nss_info_methods nss_rfc2307_methods = {
.init = nss_rfc2307_init,
.map_to_alias = nss_ad_map_to_alias,
.map_from_alias = nss_ad_map_from_alias,
};
-static struct nss_info_methods nss_sfu_methods = {
+static const struct nss_info_methods nss_sfu_methods = {
.init = nss_sfu_init,
.map_to_alias = nss_ad_map_to_alias,
.map_from_alias = nss_ad_map_from_alias,
};
-static struct nss_info_methods nss_sfu20_methods = {
+static const struct nss_info_methods nss_sfu20_methods = {
.init = nss_sfu20_init,
.map_to_alias = nss_ad_map_to_alias,
.map_from_alias = nss_ad_map_from_alias,
.sids_to_unixids = sids_to_unixids,
};
-static struct nss_info_methods hash_nss_methods = {
+static const struct nss_info_methods hash_nss_methods = {
.init = nss_hash_init,
.map_to_alias = nss_hash_map_to_alias,
.map_from_alias = nss_hash_map_from_alias,
Allow a module to register itself as a backend.
**********************************************************************/
- NTSTATUS smb_register_idmap_nss(int version, const char *name, struct nss_info_methods *methods)
+ NTSTATUS smb_register_idmap_nss(int version, const char *name,
+ const struct nss_info_methods *methods)
{
struct nss_function_entry *entry;
const char *name, char **alias )
{
struct nss_domain_entry *p;
- struct nss_info_methods *m;
+ const struct nss_info_methods *m;
if ( (p = find_nss_domain( domain )) == NULL ) {
DEBUG(4,("nss_map_to_alias: Failed to find nss domain pointer for %s\n",
const char *alias, char **name )
{
struct nss_domain_entry *p;
- struct nss_info_methods *m;
+ const struct nss_info_methods *m;
if ( (p = find_nss_domain( domain )) == NULL ) {
DEBUG(4,("nss_map_from_alias: Failed to find nss domain pointer for %s\n",