The Samba-Bugzilla – Attachment 1044 Details for
Bug 2478
passdb/pdb_ldap.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
incompatible type patches
bug2478.patch (text/plain), 1.53 KB, created by
Jason Mader (mail bounces back)
on 2005-03-17 15:01:13 UTC
(
hide
)
Description:
incompatible type patches
Filename:
MIME Type:
Creator:
Jason Mader (mail bounces back)
Created:
2005-03-17 15:01:13 UTC
Size:
1.53 KB
patch
obsolete
>Index: passdb/pdb_ldap.c >=================================================================== >--- passdb/pdb_ldap.c (revision 5865) >+++ passdb/pdb_ldap.c (working copy) >@@ -462,7 +462,7 @@ > uint8 hours[MAX_HOURS_LEN]; > pstring temp; > LOGIN_CACHE *cache_entry = NULL; >- int pwHistLen; >+ unsigned int pwHistLen; > pstring tmpstring; > > /* >@@ -694,8 +694,8 @@ > > if (ldap_state->is_nds_ldap) { > char *user_dn; >- size_t pwd_len; >- uchar clear_text_pw[512]; >+ int pwd_len; >+ char clear_text_pw[512]; > > /* Make call to Novell eDirectory ldap extension to get clear text password. > NOTE: This will only work if we have an SSL connection to eDirectory. */ >@@ -1086,14 +1086,14 @@ > } > > if (need_update(sampass, PDB_PWHISTORY)) { >- int pwHistLen = 0; >+ unsigned int pwHistLen = 0; > account_policy_get(AP_PASSWORD_HISTORY, &pwHistLen); > if (pwHistLen == 0) { > /* Remove any password history from the LDAP store. */ > memset(temp, '0', 64); /* NOTE !!!! '0' *NOT '\0' */ > temp[64] = '\0'; > } else { >- int i, currHistLen = 0; >+ int i; unsigned int currHistLen = 0; > const uint8 *pwhist = pdb_get_pw_history(sampass, &currHistLen); > if (pwhist != NULL) { > /* We can only store (sizeof(pstring)-1)/64 password history entries. */ >@@ -1122,7 +1122,7 @@ > } > > if (need_update(sampass, PDB_HOURS)) { >- const char *hours = pdb_get_hours(sampass); >+ const unsigned char *hours = pdb_get_hours(sampass); > if (hours) { > pdb_sethexhours(temp, hours); > smbldap_make_mod(ldap_state->smbldap_state->ldap_struct,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2478
: 1044