diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-09-26 16:57:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:58 -0500 |
commit | 49839f356f493d0de1b719c8c3bfdee4713c0728 (patch) | |
tree | 62055f766b1dea0f06a623e8454d22994dd500f2 /source4/auth | |
parent | f801ad359290c51d3216c755fb2a8344babb484f (diff) | |
download | samba-49839f356f493d0de1b719c8c3bfdee4713c0728.tar.gz samba-49839f356f493d0de1b719c8c3bfdee4713c0728.tar.bz2 samba-49839f356f493d0de1b719c8c3bfdee4713c0728.zip |
r10513: Reduce some use of pstring. The main reason some parts of the code still
use pstring is next_token() now.
(This used to be commit a5b88bcd420eb7ae42283293541519e142be36e3)
Diffstat (limited to 'source4/auth')
-rw-r--r-- | source4/auth/auth_developer.c | 6 | ||||
-rw-r--r-- | source4/auth/kerberos/kerberos.c | 1 | ||||
-rw-r--r-- | source4/auth/kerberos/kerberos_verify.c | 1 |
3 files changed, 3 insertions, 5 deletions
diff --git a/source4/auth/auth_developer.c b/source4/auth/auth_developer.c index 57bda22910..a961d7efa1 100644 --- a/source4/auth/auth_developer.c +++ b/source4/auth/auth_developer.c @@ -24,7 +24,6 @@ #include "auth/auth.h" #include "librpc/gen_ndr/ndr_samr.h" #include "librpc/gen_ndr/ndr_security.h" -#include "pstring.h" /** * Return an error based on username @@ -46,9 +45,10 @@ static NTSTATUS name_to_ntstatus_check_password(struct auth_method_context *ctx, { NTSTATUS nt_status; struct auth_serversupplied_info *server_info; - fstring user; uint32_t error_num; - fstrcpy(user, user_info->client.account_name); + const char *user; + + user = user_info->client.account_name; if (strncasecmp("NT_STATUS", user, strlen("NT_STATUS")) == 0) { nt_status = nt_status_string_to_code(user); diff --git a/source4/auth/kerberos/kerberos.c b/source4/auth/kerberos/kerberos.c index 3935bfaf92..62614f7081 100644 --- a/source4/auth/kerberos/kerberos.c +++ b/source4/auth/kerberos/kerberos.c @@ -28,7 +28,6 @@ #include "system/time.h" #include "auth/kerberos/kerberos.h" #include "secrets.h" -#include "pstring.h" #include "ads.h" #ifdef HAVE_KRB5 diff --git a/source4/auth/kerberos/kerberos_verify.c b/source4/auth/kerberos/kerberos_verify.c index dec084299b..514acde5eb 100644 --- a/source4/auth/kerberos/kerberos_verify.c +++ b/source4/auth/kerberos/kerberos_verify.c @@ -30,7 +30,6 @@ #include "asn_1.h" #include "lib/ldb/include/ldb.h" #include "secrets.h" -#include "pstring.h" #ifdef HAVE_KRB5 |