diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-10-20 10:28:16 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:45:04 -0500 |
commit | b0c7c175b1c1ed45a31a710e4fbe18bbffdd6d38 (patch) | |
tree | 27e92188d9370e57600e9454727d85aa7fc7829f /source4/auth/credentials/credentials_krb5.c | |
parent | 2817ef9f53e30c509ccf972beab617a897bd6724 (diff) | |
download | samba-b0c7c175b1c1ed45a31a710e4fbe18bbffdd6d38.tar.gz samba-b0c7c175b1c1ed45a31a710e4fbe18bbffdd6d38.tar.bz2 samba-b0c7c175b1c1ed45a31a710e4fbe18bbffdd6d38.zip |
r11220: Add the ability to handle the salt prinicpal as part of the
credentials. This works with the setup/secrets.ldif change from the
previous patch, and pretty much just re-invents the keytab.
Needed for kpasswdd work.
Andrew Bartlett
(This used to be commit cc9d167bab280eaeb793a5e7dfdf1f31be47fbf5)
Diffstat (limited to 'source4/auth/credentials/credentials_krb5.c')
-rw-r--r-- | source4/auth/credentials/credentials_krb5.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/auth/credentials/credentials_krb5.c b/source4/auth/credentials/credentials_krb5.c index b20d9ee750..abb8418748 100644 --- a/source4/auth/credentials/credentials_krb5.c +++ b/source4/auth/credentials/credentials_krb5.c @@ -299,3 +299,12 @@ int cli_credentials_get_kvno(struct cli_credentials *cred) return cred->kvno; } +const char *cli_credentials_get_salt_principal(struct cli_credentials *cred) +{ + return cred->salt_principal; +} + +void cli_credentials_set_salt_principal(struct cli_credentials *cred, const char *principal) +{ + cred->salt_principal = talloc_strdup(cred, principal); +} |