Displaying 4 results from an estimated 4 matches for "generate_hash".
2008 May 21
0
Rsync feature request
...ecret);
- if (!get_secret(module, line, secret, sizeof secret - 1)) {
- memset(secret, 0, sizeof secret);
- rprintf(FLOG, "auth failed on module %s from %s (%s): "
- "missing secret for user \"%s\"\n",
- lp_name(module), host, addr, line);
- return NULL;
- }
-
- generate_hash(secret, challenge, pass2);
- memset(secret, 0, sizeof secret);
- if (strcmp(pass, pass2) != 0) {
- rprintf(FLOG, "auth failed on module %s from %s (%s): "
- "password mismatch\n",
- lp_name(module), host, addr);
- return NULL;
- }
+ {
+ int skip = 0;
+...
2005 Apr 09
3
[Bug 2583] rsync fails with "authentication failure"
...ot;line" read from the
client after the read_line() call (it needs a newline):
fprintf(stderr, "%s\n", line);
That will contain the username, a space, and the MD4 hash of the challenge
string combined with the password from the client.
Then, output the pass2 variable after the generate_hash() call:
fprintf(stderr, "%s\n", pass2);
That value should match the MD4 hash from the "line" output. You'll need to
stop the daemon and run the freshly-compiled debug version using --no-detach to
see the messages on stderr:
./rsync --daemon --no-detach
That should h...
2003 Feb 12
2
rsync & ldap authentication
...+ group && *group && get_ldap_secret(module, user, secret, sizeof(secret)-1))) {
+ memset(secret, 0, sizeof(secret));
+ return NULL;
+ }
+#else
if (!get_secret(module, user, secret, sizeof(secret)-1)) {
memset(secret, 0, sizeof(secret));
return NULL;
}
+#endif
generate_hash(secret, b64_challenge, pass2);
memset(secret, 0, sizeof(secret));
@@ -260,7 +382,6 @@
return NULL;
}
-
void auth_client(int fd, char *user, char *challenge)
{
Common subdirectories: rsync-2.4.6/lib and rsync-2.4.6-ldapauth/lib
diff -u rsync-2.4.6/loadparm.c rsync-2.4.6-ldapauth/loadparm....
2003 May 03
0
Storing rsync secrets in LDAP
...ecret, 0, sizeof(secret));
return NULL;
}
-
- memset(secret, 0, sizeof(secret));
+#else
if (!get_secret(module, user, secret, sizeof(secret)-1)) {
memset(secret, 0, sizeof(secret));
return NULL;
}
+#endif
generate_hash(secret, b64_challenge, pass2);
memset(secret, 0, sizeof(secret));
@@ -261,7 +383,6 @@
return NULL;
}
-
void auth_client(int fd, char *user, char *challenge)
{
diff -ur rsync-2.5.0-ori/loadparm.c rsync-2.5.0-patched/loadparm.c
--- rsync-2.5.0-ori/loadparm.c Fri Nov 30 01:21:0...