Move copy_unix_token() from locking/locking.c to lib/util.c.
[kai/samba.git] / source3 / include / nss_info.h
index 75142898893ac467afccdcf4e4f13ea21d5251e9..f92937e990de119d8aa3ab77b1c334512c128d42 100644 (file)
@@ -62,9 +62,8 @@ struct nss_domain_entry {
 struct nss_info_methods {
        NTSTATUS (*init)( struct nss_domain_entry *e );
        NTSTATUS (*get_nss_info)( struct nss_domain_entry *e, 
-                                 const DOM_SID *sid, 
+                                 const struct dom_sid *sid,
                                  TALLOC_CTX *ctx, 
-                                 ADS_STRUCT *ads, LDAPMessage *msg,
                                  const char **homedir, const char **shell,
                                  const char **gecos, gid_t *p_gid);
        NTSTATUS (*map_to_alias)(TALLOC_CTX *mem_ctx,
@@ -83,9 +82,8 @@ NTSTATUS smb_register_idmap_nss(int version,
                                const char *name, 
                                struct nss_info_methods *methods);
 
-NTSTATUS nss_get_info( const char *domain, const DOM_SID *user_sid,
+NTSTATUS nss_get_info( const char *domain, const struct dom_sid *user_sid,
                       TALLOC_CTX *ctx,
-                      ADS_STRUCT *ads, LDAPMessage *msg,
                       const char **homedir, const char **shell,
                       const char **gecos, gid_t *p_gid);
 
@@ -97,5 +95,12 @@ NTSTATUS nss_map_from_alias( TALLOC_CTX *mem_ctx, const char *domain,
 
 NTSTATUS nss_close( const char *parameters );
 
+/* The following definitions come from winbindd/nss_info.c  */
+
+
+/* The following definitions come from winbindd/nss_info_template.c  */
+
+NTSTATUS nss_info_template_init( void );
+
 #endif /* _IDMAP_NSS_H_ */