summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-17 22:20:43 +0200
committerAndrew Bartlett <abartlet@samba.org>2009-10-22 10:02:48 +1100
commit60ec0f1ae7e3efc65cce3abc1c56138e09473fcf (patch)
treedd5e83659ac73820d144942e34ee18df55398960 /source4/dsdb/samdb
parentd120e7ebde71c0ab694e1e7c0002dd1f80c05f0a (diff)
downloadsamba-60ec0f1ae7e3efc65cce3abc1c56138e09473fcf.tar.gz
samba-60ec0f1ae7e3efc65cce3abc1c56138e09473fcf.tar.bz2
samba-60ec0f1ae7e3efc65cce3abc1c56138e09473fcf.zip
s4:dsdb/samdb/cracknames - Remove unused header and add more "const"
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/cracknames.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/dsdb/samdb/cracknames.c b/source4/dsdb/samdb/cracknames.c
index 8f7f481e2d..23811d3a92 100644
--- a/source4/dsdb/samdb/cracknames.c
+++ b/source4/dsdb/samdb/cracknames.c
@@ -23,15 +23,14 @@
#include "includes.h"
#include "librpc/gen_ndr/drsuapi.h"
-#include "rpc_server/common/common.h"
#include "lib/events/events.h"
+#include "rpc_server/common/common.h"
#include "lib/ldb/include/ldb.h"
#include "lib/ldb/include/ldb_errors.h"
#include "system/kerberos.h"
#include "auth/kerberos/kerberos.h"
#include "libcli/ldap/ldap_ndr.h"
#include "libcli/security/security.h"
-#include "librpc/gen_ndr/ndr_misc.h"
#include "auth/auth.h"
#include "../lib/util/util_ldb.h"
#include "dsdb/samdb/samdb.h"
@@ -55,7 +54,7 @@ static WERROR dns_domain_from_principal(TALLOC_CTX *mem_ctx, struct smb_krb5_con
krb5_error_code ret;
krb5_principal principal;
/* perhaps it's a principal with a realm, so return the right 'domain only' response */
- char *realm;
+ const char *realm;
ret = krb5_parse_name_flags(smb_krb5_context->krb5_context, name,
KRB5_PRINCIPAL_PARSE_REQUIRE_REALM, &principal);
if (ret) {
@@ -271,7 +270,7 @@ static WERROR DsCrackNameUPN(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ctx,
const char *result_filter = NULL;
krb5_error_code ret;
krb5_principal principal;
- char *realm;
+ const char *realm;
char *unparsed_name_short;
const char *domain_attrs[] = { NULL };
struct ldb_result *domain_res = NULL;