Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jul 2006
    Posts
    8

    Error in the command line interface

    While looking at the CLI login details the help page says:
    login <user> <password>

    The "login" command allows the caller to authenticate itself on the server, as defined in the Security pane of the server preferences. Like any other command, the user and password must be escaped. If successful, the server replaces the password with 6 star characters. If unsuccessful, the server disconnects. If security is off this command is always successful.

    Examples:

    Request: "login user correctpassword<LF>"
    Response: "login user ******<LF>"

    Request: "login user wrongpassword<LF>"
    Response: (Connection terminated)
    Unfortunately this is not what happens. when the username/password is wrong the server actually sends "login user ******" and THEN terminates the connection. This could be simply a documentation problem obviously.

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,782

    Error in the command line interface

    > Unfortunately this is not what happens. when the username/password is
    > wrong the server actually sends "login user ******" and THEN terminates
    > the connection. This could be simply a documentation problem obviously.


    I considered it a documentation issue and fixed that one.

    It's just surprising me how many documentation issues showed up
    recently. As if people were starting to actually read it! :-)

    BTW: I wouldn't use the raw CLI anyway. Use json/rpc instead. It's much
    easier to handle the results, as they come as structured data (json),
    rather than a large amount of data you'd have to parse yourself.

    --

    Michael

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •