2007-08-29 09:44:42

by Przemysław Jakubowski

[permalink] [raw]
Subject: [Bluez-users] Pin Authentication

Hi

I want to configure my computer, that accepts connection with some defined
default PIN.
How I should configure hcid.conf?
What I should insert in security , auto, none, or user.
Should I use passkey "1234" or maybe pin_helper /usr/bin/bluepin , and
bluepin is file with 1234.
Should I set maybe something else?

Thank you for any help

Best Regards,
Przemek.


Attachments:
(No filename) (363.00 B)
(No filename) (412.00 B)
(No filename) (315.00 B)
(No filename) (164.00 B)
Download all attachments

2007-08-29 13:30:20

by Przemysław Jakubowski

[permalink] [raw]
Subject: Re: [Bluez-users] Pin Authentication

It's working, thank you very much.

Best Regards, Przemek

2007/8/29, Mats Erik Andersson <[email protected]>:
>
> ons 2007-08-29 klockan 11:52 +0200 skrev Przemys?aw Jakubowski:
> > I use BlueZ 2.25, and I have to use it.
> > Now I have set security auto, and pin_helper /usr/bin/bluepin where
> > bluepin is a file with 1234.
> > Is it correct configuration??
> >
> > Regards, Przemek
> >
> In system with bluez-utils 2.* any pin-code helper have
> to output a string "PIN:1234" in order to be accepted.
> Thus
> #!/bin/sh
> logger -t hicd.pin-helper "Disclosed my pin-code"
> echo "PIN:1234"
>
> would be useful for a fixed authentification. But as stated
> by Marcel Holtmann, presentday bluez-utils 3.* are using
> clearly superior mechanisms, so think trough what systems
> you are using.
>
> Regards
>
> M E Andersson
>
>
>
> > 2007/8/29, Marcel Holtmann <[email protected]>:
> > Hi,
> >
> > > I want to configure my computer, that accepts connection
> > with some
> > > defined default PIN.
> > > How I should configure hcid.conf?
> > > What I should insert in security , auto, none, or user.
> > > Should I use passkey "1234" or maybe
> > pin_helper /usr/bin/bluepin , and
> > > bluepin is file with 1234.
> > > Should I set maybe something else?
> >
> > if you use a default PIN, then you also can use no PIN at all.
> > Anyway
> > starting with BlueZ 3.x you need a passkey agent.
> >
> > Regards
> >
> > Marcel
> >
> >
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems? Stop.
> > Now Search log events and configuration files using AJAX and a
> > browser.
> > Download your FREE copy of Splunk now
> > >> http://get.splunk.com/
> > _______________________________________________
> > Bluez-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/bluez-users
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems? Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > _______________________________________________ Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>


Attachments:
(No filename) (3.13 kB)
(No filename) (5.40 kB)
(No filename) (315.00 B)
(No filename) (164.00 B)
Download all attachments

2007-08-29 12:45:06

by Mats Erik Andersson

[permalink] [raw]
Subject: Re: [Bluez-users] Pin Authentication

b25zIDIwMDctMDgtMjkga2xvY2thbiAxMTo1MiArMDIwMCBza3JldiBQcnplbXlzxYJhdyBKYWt1
Ym93c2tpOgo+IEkgdXNlIEJsdWVaIDIuMjUsIGFuZCBJIGhhdmUgdG8gdXNlIGl0LiAKPiBOb3cg
SSBoYXZlIHNldCBzZWN1cml0eSBhdXRvLCBhbmQgcGluX2hlbHBlciAvdXNyL2Jpbi9ibHVlcGlu
IHdoZXJlCj4gYmx1ZXBpbiBpcyBhIGZpbGUgd2l0aCAxMjM0Lgo+IElzIGl0IGNvcnJlY3QgY29u
ZmlndXJhdGlvbj8/Cj4gCj4gUmVnYXJkcywgUHJ6ZW1lawo+IApJbiBzeXN0ZW0gd2l0aCBibHVl
ei11dGlscyAyLiogYW55IHBpbi1jb2RlIGhlbHBlciBoYXZlCnRvIG91dHB1dCBhIH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ZyBBSkFYIGFuZCBhIGJyb3dzZXIuCkRvd25sb2FkIHlvdXIgRlJFRSBjb3B5IG9mIFNwbHVu
ayBub3cgPj4gIGh0dHA6Ly9nZXQuc3BsdW5rLmNvbS8KX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX18KQmx1ZXotdXNlcnMgbWFpbGluZyBsaXN0CkJsdWV6LXVz
ZXJzQGxpc3RzLnNvdXJjZWZvcmdlLm5ldApodHRwczovL2xpc3RzLnNvdXJjZWZvcmdlLm5ldC9s
aXN0cy9saXN0aW5mby9ibHVlei11c2Vycwo=

2007-08-29 09:58:21

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] Pin Authentication

Hi,

> I use BlueZ 2.25, and I have to use it.

the BlueZ 2.x is no longer officially supported. If you wanna stick with
ancient software then it is your choice.

> Now I have set security auto, and pin_helper /usr/bin/bluepin where
> bluepin is a file with 1234.
> Is it correct configuration??

No, it was different. The file needs a prefix or something. Check the
mailing list archives. We removed that piece of crap code for the 3.x
series and I am happy about that we don't have to worry anymore.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2007-08-29 09:52:20

by Przemysław Jakubowski

[permalink] [raw]
Subject: Re: [Bluez-users] Pin Authentication

I use BlueZ 2.25, and I have to use it.
Now I have set security auto, and pin_helper /usr/bin/bluepin where bluepin
is a file with 1234.
Is it correct configuration??

Regards, Przemek

2007/8/29, Marcel Holtmann <[email protected]>:
>
> Hi,
>
> > I want to configure my computer, that accepts connection with some
> > defined default PIN.
> > How I should configure hcid.conf?
> > What I should insert in security , auto, none, or user.
> > Should I use passkey "1234" or maybe pin_helper /usr/bin/bluepin , and
> > bluepin is file with 1234.
> > Should I set maybe something else?
>
> if you use a default PIN, then you also can use no PIN at all. Anyway
> starting with BlueZ 3.x you need a passkey agent.
>
> Regards
>
> Marcel
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>


Attachments:
(No filename) (1.21 kB)
(No filename) (1.71 kB)
(No filename) (315.00 B)
(No filename) (164.00 B)
Download all attachments

2007-08-29 09:47:15

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] Pin Authentication

Hi,

> I want to configure my computer, that accepts connection with some
> defined default PIN.
> How I should configure hcid.conf?
> What I should insert in security , auto, none, or user.
> Should I use passkey "1234" or maybe pin_helper /usr/bin/bluepin , and
> bluepin is file with 1234.
> Should I set maybe something else?

if you use a default PIN, then you also can use no PIN at all. Anyway
starting with BlueZ 3.x you need a passkey agent.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users