diff options
Diffstat (limited to 'usr/src/lib/smbsrv/libsmbns/common/smbns_ads.c')
-rw-r--r-- | usr/src/lib/smbsrv/libsmbns/common/smbns_ads.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/usr/src/lib/smbsrv/libsmbns/common/smbns_ads.c b/usr/src/lib/smbsrv/libsmbns/common/smbns_ads.c index 8bbe0e8afb..0a07771985 100644 --- a/usr/src/lib/smbsrv/libsmbns/common/smbns_ads.c +++ b/usr/src/lib/smbsrv/libsmbns/common/smbns_ads.c @@ -1599,7 +1599,8 @@ smb_ads_lookup_computer_n_attr(smb_ads_handle_t *ah, smb_ads_avpair_t *avpair, { char *attrs[3], filter[SMB_ADS_MAXBUFLEN]; LDAPMessage *res; - char sam_acct[SMB_SAMACCT_MAXLEN], sam_acct2[SMB_SAMACCT_MAXLEN]; + char sam_acct[SMB_SAMACCT_MAXLEN]; + char tmpbuf[SMB_ADS_MAXBUFLEN]; smb_ads_qstat_t rc; int err; @@ -1618,12 +1619,12 @@ smb_ads_lookup_computer_n_attr(smb_ads_handle_t *ah, smb_ads_avpair_t *avpair, attrs[1] = avpair->avp_attr; } - if (smb_ads_escape_search_filter_chars(sam_acct, sam_acct2) != 0) + if (smb_ads_escape_search_filter_chars(sam_acct, tmpbuf) != 0) return (SMB_ADS_STAT_ERR); (void) snprintf(filter, sizeof (filter), - "(&(objectClass=computer)(%s=%s))", SMB_ADS_ATTR_SAMACCT, - sam_acct2); + "(&(objectClass=computer)(%s=%s))", + SMB_ADS_ATTR_SAMACCT, tmpbuf); syslog(LOG_DEBUG, "smbns: lookup_computer, " "dn=%s, scope=%d", dn, scope); @@ -1947,8 +1948,12 @@ adjoin_table[] = { "Failed to resolve default credential cache." }, { SMB_ADS_KRB5_PARSE_PRINCIPAL, "Failed parsing the user principal name." }, + { SMB_ADS_KRB5_GET_INIT_CREDS_OTHER, + "Failed getting initial credentials. (See svc. log)" }, { SMB_ADS_KRB5_GET_INIT_CREDS_PW, "Failed getting initial credentials. (Wrong password?)" }, + { SMB_ADS_KRB5_GET_INIT_CREDS_SKEW, + "Failed getting initial credentials. (Clock skew too great)" }, { SMB_ADS_KRB5_CC_INITIALIZE, "Failed initializing the credential cache." }, { SMB_ADS_KRB5_CC_STORE_CRED, |