r11929: Add static, comments.
authorAndrew Bartlett <abartlet@samba.org>
Sun, 27 Nov 2005 02:00:37 +0000 (02:00 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:46:48 +0000 (13:46 -0500)
Andrew Bartlett

source/auth/auth_sam.c

index 56e61ea2a30dec7b1b819f4dff8f960fff801353..e65a5c70f641789759b688440605df72a8e51fd1 100644 (file)
@@ -26,7 +26,7 @@
 #include "auth/auth.h"
 #include "lib/ldb/include/ldb.h"
 
-const char *user_attrs[] = {
+static const char *user_attrs[] = {
        /* requried for the krb5 kdc*/
        "objectClass",
        "sAMAccountName",
@@ -64,7 +64,7 @@ const char *user_attrs[] = {
        NULL,
 };
 
-const char *domain_ref_attrs[] =  {"nETBIOSName", "nCName", "dnsRoot", NULL};
+static const char *domain_ref_attrs[] =  {"nETBIOSName", "nCName", "dnsRoot", NULL};
 
 /****************************************************************************
  Do a specific test for an smb password being correct, given a smb_password and
@@ -585,7 +585,7 @@ NTSTATUS sam_get_results_principal(struct ldb_context *sam_ctx,
        return NT_STATUS_OK;
 }
                                   
-
+/* Used in the gensec_gssapi and gensec_krb5 server-side code, where the PAC isn't available */
 NTSTATUS sam_get_server_info_principal(TALLOC_CTX *mem_ctx, const char *principal,
                                       struct auth_serversupplied_info **server_info)
 {