public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] PIN Authentication Problems on MDV 2007
@ 2006-10-15  4:47 Manuel Naranjo
  2006-10-15 13:11 ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: Manuel Naranjo @ 2006-10-15  4:47 UTC (permalink / raw)
  To: Bluez-users

Hi,
I have updated to Mandriva 2007, and I can't figure why, I can't make 
things get back working, when I used mdv 2006 all bluez went on OK.

Here is my hcid.conf:
#
# HCI daemon configuration file.
#

# HCId options
options {
    # Automatically initialize new devices
    autoinit yes;

    # Security Manager mode
    #   none - Security manager disabled
    #   auto - Use local PIN for incoming connections
    #   user - Always ask user for a PIN
    #
    security user;

    # Pairing mode
    #   none  - Pairing disabled
    #   multi - Allow pairing with already paired devices
    #   once  - Pair once and deny successive attempts
    pairing multi;

    # Default PIN code for incoming connections
    passkey "1234";
   
    pin_helper /bin/bluepin;
   
    #dbus_pin_helper;
}

# Default settings for HCI devices
device {
    # Local device name
    #   %d - device id
    #   %h - host name
    name "BlueZ (%d)";

    # Local device class
    class 0x3e0100;

    # Default packet type
    #pkt_type DH1,DM1,HV1;

    # Inquiry and Page scan
    iscan enable; pscan enable;

    # Default link mode
    #   none   - no specific policy
    #   accept - always accept incoming connections
    #   master - become master on incoming connections,
    #            deny role switch on outgoing connections
    lm accept;

    # Default link policy
    #   none    - no specific policy
    #   rswitch - allow role switch
    #   hold    - allow hold mode
    #   sniff   - allow sniff mode
    #   park    - allow park mode
    lp rswitch,hold,sniff,park;
}
---

/bin/bluepin is no more than a link to kbluetooth pin.

The thing is that, when ever I try to establish a connection, it seems 
that BlueZ (or something else) is missing the PIN code.

I'm doing:
hcitool cc 00:50:C2:58:50:00 //To get the connection on
hcitool key 00:50:C2:58:50:00 //To Exchange Link Kety,

I have even tried with hcitool auth 00:50:C2:58:50:00, every time the 
result is the same.

hcidump -X -V shows this:
 > HCI Event: PIN Code Request (0x16) plen 6
    bdaddr 00:50:C2:58:50:00
< HCI Command: PIN Code Request Negative Reply (0x01|0x000e) plen 6
    bdaddr 00:50:C2:58:50:00
 > HCI Event: Command Complete (0x0e) plen 10
    PIN Code Request Negative Reply (0x01|0x000e) ncmd 1
    status 0x00 bdaddr 00:50:C2:58:50:00
 > HCI Event: Auth Complete (0x06) plen 3
    status 0x06 handle 1
    Error: PIN or Key Missing

And I never get a Pin Request from the BlueZ side.

Any ideas?

Cheers,
Manuel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Bluez-users] PIN Authentication Problems on MDV 2007
  2006-10-15  4:47 [Bluez-users] PIN Authentication Problems on MDV 2007 Manuel Naranjo
@ 2006-10-15 13:11 ` Marcel Holtmann
  2006-10-15 13:13   ` Manuel Naranjo
  2008-06-02 17:51   ` Mats Karlsson
  0 siblings, 2 replies; 8+ messages in thread
From: Marcel Holtmann @ 2006-10-15 13:11 UTC (permalink / raw)
  To: BlueZ users

Hi Manuel,

> I have updated to Mandriva 2007, and I can't figure why, I can't make 
> things get back working, when I used mdv 2006 all bluez went on OK.
> 
> Here is my hcid.conf:
> #
> # HCI daemon configuration file.
> #
> 
> # HCId options
> options {
>     # Automatically initialize new devices
>     autoinit yes;
> 
>     # Security Manager mode
>     #   none - Security manager disabled
>     #   auto - Use local PIN for incoming connections
>     #   user - Always ask user for a PIN
>     #
>     security user;
> 
>     # Pairing mode
>     #   none  - Pairing disabled
>     #   multi - Allow pairing with already paired devices
>     #   once  - Pair once and deny successive attempts
>     pairing multi;
> 
>     # Default PIN code for incoming connections
>     passkey "1234";
>    
>     pin_helper /bin/bluepin;
>    
>     #dbus_pin_helper;
> }
> 
> # Default settings for HCI devices
> device {
>     # Local device name
>     #   %d - device id
>     #   %h - host name
>     name "BlueZ (%d)";
> 
>     # Local device class
>     class 0x3e0100;
> 
>     # Default packet type
>     #pkt_type DH1,DM1,HV1;
> 
>     # Inquiry and Page scan
>     iscan enable; pscan enable;
> 
>     # Default link mode
>     #   none   - no specific policy
>     #   accept - always accept incoming connections
>     #   master - become master on incoming connections,
>     #            deny role switch on outgoing connections
>     lm accept;
> 
>     # Default link policy
>     #   none    - no specific policy
>     #   rswitch - allow role switch
>     #   hold    - allow hold mode
>     #   sniff   - allow sniff mode
>     #   park    - allow park mode
>     lp rswitch,hold,sniff,park;
> }
> ---
> 
> /bin/bluepin is no more than a link to kbluetooth pin.
> 
> The thing is that, when ever I try to establish a connection, it seems 
> that BlueZ (or something else) is missing the PIN code.
> 
> I'm doing:
> hcitool cc 00:50:C2:58:50:00 //To get the connection on
> hcitool key 00:50:C2:58:50:00 //To Exchange Link Kety,
> 
> I have even tried with hcitool auth 00:50:C2:58:50:00, every time the 
> result is the same.
> 
> hcidump -X -V shows this:
>  > HCI Event: PIN Code Request (0x16) plen 6
>     bdaddr 00:50:C2:58:50:00
> < HCI Command: PIN Code Request Negative Reply (0x01|0x000e) plen 6
>     bdaddr 00:50:C2:58:50:00
>  > HCI Event: Command Complete (0x0e) plen 10
>     PIN Code Request Negative Reply (0x01|0x000e) ncmd 1
>     status 0x00 bdaddr 00:50:C2:58:50:00
>  > HCI Event: Auth Complete (0x06) plen 3
>     status 0x06 handle 1
>     Error: PIN or Key Missing
> 
> And I never get a Pin Request from the BlueZ side.

starting with bluez-utils-3.x the PIN helper concept has been replaced
with a passkey agent interface. You need to run a passkey agent to get
you PIN request dialog. One example would be bt-applet from the
bluez-gnome package.

Regards

Marcel



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Bluez-users] PIN Authentication Problems on MDV 2007
  2006-10-15 13:11 ` Marcel Holtmann
@ 2006-10-15 13:13   ` Manuel Naranjo
  2006-10-16  1:08     ` Manuel Naranjo
  2008-06-02 17:51   ` Mats Karlsson
  1 sibling, 1 reply; 8+ messages in thread
From: Manuel Naranjo @ 2006-10-15 13:13 UTC (permalink / raw)
  To: BlueZ users


>
> starting with bluez-utils-3.x the PIN helper concept has been replaced
> with a passkey agent interface. You need to run a passkey agent to get
> you PIN request dialog. One example would be bt-applet from the
> bluez-gnome package
Hi Marcel,
Ok, thanks, but.... How do I tell BlueZ which agent to use?
Cheers,
Manuel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Bluez-users] PIN Authentication Problems on MDV 2007
  2006-10-15 13:13   ` Manuel Naranjo
@ 2006-10-16  1:08     ` Manuel Naranjo
  2006-10-16  7:35       ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: Manuel Naranjo @ 2006-10-16  1:08 UTC (permalink / raw)
  To: Bluez-users

Manuel Naranjo wrote:
>
>>
>> starting with bluez-utils-3.x the PIN helper concept has been replaced
>> with a passkey agent interface. You need to run a passkey agent to get
>> you PIN request dialog. One example would be bt-applet from the
>> bluez-gnome package
> Hi Marcel,
> Ok, thanks, but.... How do I tell BlueZ which agent to use?
> Cheers,
> Manuel
>
I could fix it. How do I tell BlueZ to always use the same passkey 
agent? Like it was done in the pass with the pin stuff?
Cheers,
Manuel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Bluez-users] PIN Authentication Problems on MDV 2007
  2006-10-16  1:08     ` Manuel Naranjo
@ 2006-10-16  7:35       ` Marcel Holtmann
  2006-10-17 16:21         ` Dietmar Segbert
  0 siblings, 1 reply; 8+ messages in thread
From: Marcel Holtmann @ 2006-10-16  7:35 UTC (permalink / raw)
  To: BlueZ users

Hi Manuel,

> >> starting with bluez-utils-3.x the PIN helper concept has been replaced
> >> with a passkey agent interface. You need to run a passkey agent to get
> >> you PIN request dialog. One example would be bt-applet from the
> >> bluez-gnome package
> >
> I could fix it. How do I tell BlueZ to always use the same passkey 
> agent? Like it was done in the pass with the pin stuff?

you install a default passkey agent and have no device specific passkey
agent running at the same time.

Regards

Marcel



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Bluez-users] PIN Authentication Problems on MDV 2007
  2006-10-16  7:35       ` Marcel Holtmann
@ 2006-10-17 16:21         ` Dietmar Segbert
  2006-10-18 15:39           ` Stefan Seyfried
  0 siblings, 1 reply; 8+ messages in thread
From: Dietmar Segbert @ 2006-10-17 16:21 UTC (permalink / raw)
  To: bluez-users

Hello Marcel,

> marcel@holtmann.org schrieb am 17.10.06:
>>>> starting with bluez-utils-3.x the PIN helper concept has been
>>>> replaced with a passkey agent interface. You need to run a
>>>> passkey agent to get you PIN request dialog. One example would
>>>> be bt-applet from the bluez-gnome package
i have compiled bluez-utils-3.7 and copied the passkey-agent from the
hcid/ to /usr/local/bin manually.

I have googled and i find a line

passkey-agent --default /usr/bin/bluepin

to start the agent.

but where i can find "blupin".

I have not installed gnome on my system and so i can't compile bluez-
gnome. I only use a textbased slackware 10.2 with speakup and brltty for
speech and braille.

Must i install an other key-agent?

Thanks for your help.

Dietmar

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Bluez-users] PIN Authentication Problems on MDV 2007
  2006-10-17 16:21         ` Dietmar Segbert
@ 2006-10-18 15:39           ` Stefan Seyfried
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Seyfried @ 2006-10-18 15:39 UTC (permalink / raw)
  To: BlueZ users

On Tue, Oct 17, 2006 at 06:21:00PM +0200, Dietmar Segbert wrote:
> Hello Marcel,
> =

> > marcel@holtmann.org schrieb am 17.10.06:
> >>>> starting with bluez-utils-3.x the PIN helper concept has been
> >>>> replaced with a passkey agent interface. You need to run a
> >>>> passkey agent to get you PIN request dialog. One example would
> >>>> be bt-applet from the bluez-gnome package
> i have compiled bluez-utils-3.7 and copied the passkey-agent from the
> hcid/ to /usr/local/bin manually.
> =

> I have googled and i find a line
> =

> passkey-agent --default /usr/bin/bluepin

Well, only if you want your PIN to be "/usr/bin/bluepin" :-)

Just use "passkey-agent --default 1468", replace 1468 with $YOURPIN.

> I have not installed gnome on my system and so i can't compile bluez-
> gnome. I only use a textbased slackware 10.2 with speakup and brltty for
> speech and braille.
> =

> Must i install an other key-agent?

No, the passkey-agent from the hcid/ dir should work just fine for your cas=
e.
-- =

Stefan Seyfried
QA / R&D Team Mobile Devices        |              "Any ideas, John?"
SUSE LINUX Products GmbH, N=FCrnberg  | "Well, surrounding them's out." =


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easi=
er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Bluez-users] PIN Authentication Problems on MDV 2007
  2006-10-15 13:11 ` Marcel Holtmann
  2006-10-15 13:13   ` Manuel Naranjo
@ 2008-06-02 17:51   ` Mats Karlsson
  1 sibling, 0 replies; 8+ messages in thread
From: Mats Karlsson @ 2008-06-02 17:51 UTC (permalink / raw)
  To: bluez-users

Marcel Holtmann <marcel <at> holtmann.org> writes:

> Hi Manuel,
>
> starting with bluez-utils-3.x the PIN helper concept has been replaced
> with a passkey agent interface. You need to run a passkey agent to get
> you PIN request dialog. One example would be bt-applet from the
> bluez-gnome package.
> 
> Regards
> 
> Marcel

Marcel,

Witch passkey agent is recommended on machines with only console interface
(CLI), example: Servers and appliances ?

Is the passkey-agent.c still a example or has it matured to a non example code ?


Kind regards
Mats


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-06-02 17:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-15  4:47 [Bluez-users] PIN Authentication Problems on MDV 2007 Manuel Naranjo
2006-10-15 13:11 ` Marcel Holtmann
2006-10-15 13:13   ` Manuel Naranjo
2006-10-16  1:08     ` Manuel Naranjo
2006-10-16  7:35       ` Marcel Holtmann
2006-10-17 16:21         ` Dietmar Segbert
2006-10-18 15:39           ` Stefan Seyfried
2008-06-02 17:51   ` Mats Karlsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox