From d10c2100d15cdf3adc26010f65061a764741ad7e Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Mon, 10 May 2021 20:20:34 -0500 Subject: [PATCH] Use the UID for SASL auth, not the username Otherwise, Duplicacy is unable to connect to certain D-Bus implementations. In particular, dbus-broker will reject the connections. --- auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.go b/auth.go index bf70a89..5d99ae6 100644 --- a/auth.go +++ b/auth.go @@ -56,7 +56,7 @@ func (conn *Conn) Auth(methods []Auth) error { if err != nil { return err } - methods = []Auth{AuthExternal(u.Username), AuthCookieSha1(u.Username, u.HomeDir)} + methods = []Auth{AuthExternal(u.Uid), AuthCookieSha1(u.Username, u.HomeDir)} } in := bufio.NewReader(conn.transport) err := conn.transport.SendNullByte()