Displaying 9 results from an estimated 9 matches for "get_secret".
2008 May 21
0
Rsync feature request
...rsync-2.6.6/authenticate.c 2005-04-10 13:09:10.000000000 -0400
+++ rsync-2.6.6.patched/authenticate.c 2005-09-12 14:44:59.091055616
-0400
@@ -76,7 +76,7 @@
/* Return the secret for a user from the secret file, null terminated.
* Maximum length is len (not counting the null). */
-static int get_secret(int module, char *user, char *secret, int len)
+static int get_secret(int module, char *user, char *secret, int len,
int skip_how_many)
{
char *fname = lp_secrets_file(module);
STRUCT_STAT st;
@@ -125,8 +125,13 @@
else if (p) {
if (*p == ch)
p++;
- else if (!*p &&...
2003 Feb 12
2
rsync & ldap authentication
...{
+ char *p = user + strlen(prefix);
+ rprintf(FINFO,"mangle user: rewriting \"%s\" to \"%s\"\n", user, p);
+ memmove(user, p, strlen(p) + 1);
+ break;
+ }
+ }
+ free(tofree);
}
+#endif
+ /* checking if user is in "auth users" now happens in get_secret() */
memset(secret, 0, sizeof(secret));
+#ifdef WITH_LDAP
+ if (!(users && *users && get_secret(module, user, secret, sizeof(secret)-1) ||
+ group && *group && get_ldap_secret(module, user, secret, sizeof(secret)-1))) {
+ memset(secret, 0, sizeof(secret))...
2003 May 03
0
Storing rsync secrets in LDAP
...user, p);
+ memmove(user, p, strlen(p) + 1);
+ break;
+ }
+ }
+ free(tofree);
}
- free(users);
+#endif
+ /* checking if user is in "auth users" now happens in get_secret() */
- if (!tok) {
+ memset(secret, 0, sizeof(secret));
+#ifdef WITH_LDAP
+ if (!(users && *users && get_secret(module, user, secret, sizeof(secret)-1) ||
+ group && *group && get_ldap_secret(module, user, secret,
+sizeof(secret)-1)...
2002 Feb 20
2
[PATCH] rsync on cygwin - textmode config files
...e=*.o --exclude=*.1852$ --exclude=*.exe --exclude=Makefile --exclude=con* --exclude=*~ rsync-2.5.2/authenticate.c rsync-2.5.2-patched/authenticate.c
--- rsync-2.5.2/authenticate.c Thu Jan 24 04:33:45 2002
+++ rsync-2.5.2-patched/authenticate.c Tue Feb 19 14:04:36 2002
@@ -82,13 +82,24 @@ static int get_secret(int module, char *
if (!fname || !*fname) return 0;
- fd = open(fname,O_RDONLY);
+ fd = open(fname,O_RDONLY
+#ifdef __CYGWIN__
+ | O_TEXT
+#endif
+ );
if (fd == -1) return 0;
if (do_stat(fname, &st) == -1) {
rsyserr(FERROR, errno, "stat(%s)", fname);
ok = 0;
} el...
2007 Aug 24
0
rsync patch to add Apple keychain support
...keychainOrArray,
UInt32 serviceNameLength, const char *serviceName, UInt32
accountNameLength, const char *accountName, UInt32 *passwordLength,
void **passwordData, SecKeychainItemRef *itemRef);
OSStatus SecKeychainItemFreeContent(SecKeychainAttributeList *attrList,
void *data);
static int get_secret_from_keychain(int module, char *user, char
*secret, unsigned secretmaxlen)
{
char accountname[100] = "";
char* modulename = lp_name(module);
strcat(accountname, modulename);
strcat(accountname, "-");
strcat(accountname, user);
OSStatus status = noErr;
UInt32 pass...
2010 May 27
1
rsyncd users/passwords in a database (mysql, postgresql)?
Is it possible to make rsync (in daemon mode) fetch the users from a
database (mysql, postgresql), instead of storing them in plain text
"secrets file"?
--
Tomasz Chmielewski
http://wpkg.org
2008 Apr 17
3
DO NOT REPLY [Bug 5401] New: getpassf() should honor strict modes
...e
AssignedTo: wayned@samba.org
ReportedBy: steve53@earthlink.net
QAContact: rsync-qa@samba.org
Porting to platforms without true stat() support would be simpler if getpassf()
(authentic.c) honored the strict modes option. The code would be similar to
the existing code in get_secret().
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
2003 Jan 26
1
[PATCH] open O_TEXT and O_BINARY for cygwin/windows
Ville Herva [mailto:vherva@niksula.hut.fi] wrote:
> Of course, whether O_TEXT is defined or not does not
> necessarily imply the availability of "t", but I
> can't think of better alternative.
Stratus VOS implements O_TEXT and O_BINARY but does not recognize "t". We
have the options defined in ANS C and in POSIX. I'm at home and don't have
my reference
2003 Jan 21
6
Please test rsync-2.5.6pre2
The second rsync-2.5.6 pre-release version is now available at:
http://rsync.samba.org/ftp/rsync/preview/rsync-2.5.6pre2.tar.gz
ftp://rsync.samba.org/pub/rsync/preview/rsync-2.5.6pre2.tar.gz
rsync://rsync.samba.org/ftp/rsync/preview/rsync-2.5.6pre2.tar.gz
There's also a corresponding '.sig' file that contains a gpg signature
of the file; the public key is available on the