external auth mech over unix socket

Yang Chengwei chengwei.yang at intel.com
Sat Dec 7 19:00:39 PST 2013


On Sat, Dec 07, 2013 at 03:50:24PM -0600, Serge Hallyn wrote:
> Quoting Yang Chengwei (chengwei.yang at intel.com):
> > > 
> > > I dont' understand why the socket gets closed right after the ANONYMOUS
> > > mech succeeds.  IIUC ANONYMOUS would be fine with me - all I need is
> > > the socket credentials.  Could this be a bug in the anonymous mech
> > > code, or (more likely) am I misusing something?
> > 
> > To allow anonymous connections, <allow_anonymous/> is necessary, Did
> > you add it in your message bus .conf?
> 
> Thanks for your reply!  I hadn't, but that didn't seem to help.
> However, I just added
> 
> dbus_connection_set_allow_anonymous(conn, TRUE);
> 
> to my client_connect handler, and that seems to have done it!

Hmm, seems your code base is quite old? This part of support already
there, didn't check since when though.

--
Thanks,
Chengwei

> 
> thanks,
> -serge
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20131208/ff794e19/attachment.pgp>


More information about the dbus mailing list