directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Seelmann (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRSTUDIO-356) Add a way to get the connection config as an URL
Date Mon, 25 Aug 2008 15:31:44 GMT

    [ https://issues.apache.org/jira/browse/DIRSTUDIO-356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625399#action_12625399
] 

Stefan Seelmann commented on DIRSTUDIO-356:
-------------------------------------------

I would suggest we use "X-" extensions, as defined in RFC2255, for all the parameters beside
host and port.

The URL would then look like this:
  ldap://host:port/????extensions

Here are the possible extensions:
  X-CONNECTION-NAME=<conection name> - current date if absent
  X-ENCRYPTION=[none|ldaps|StartTLS] - none if other or absent
  X-AUTH-METHOD=[Anonymous|Simple|DIGEST-MD5|CRAM-MD5] - Simple if other or absent AND X-BIND-USER
is present, else Anonymous
  X-BIND-USER=<DN or Username> - none if empty or absent
  X-BIND-PASSWORD=<password> - none if empty or absent
  X-SASL-REALM=<SASL-Realm> - none if empty or absent
  X-BASE-DN=<Base DN> - get from Root DSE if empty or absent
  X-COUNT-LIMIT=<count limit> - 1000 if non-numeric or absent
  X-TIME-LIMIT=<time limit> - 0 if non-numeric or absent
  X-ALIAS-HANDLING=[NEVER|SEARCHING|FINDING|ALWAYS] - ALWAYS if other or absent
  X-REFERRAL-HANDLING=[FOLLOW|IGNORE|MANAGE] - FOLLOW if other of absent

Thanks to our LdapURL class it should be easy to implement this, URL-encoding of the values
is handled by this class.

Here is an example URL:
  ldap://localhost:10389/????X-BIND-USER=uid=admin%2cou=system,X-CONNECTION-NAME=Apache%20DS,X-BIND-PASSWORD=secret

RFC2255 includes an extension "bindname", however I would suggest we only use private "X-"
extensions for all parameters.

An open question is if we should add the X-BIND-PASSWORD, when copy/paste the URL?

Thought?


> Add a way to get the connection config as an URL
> ------------------------------------------------
>
>                 Key: DIRSTUDIO-356
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-356
>             Project: Directory Studio
>          Issue Type: New Feature
>            Reporter: Emmanuel Lecharny
>             Fix For: 1.3.0
>
>
> It would be very interesting to be able to get the connection configuration as an URL
you can copy and paste so that it makes it easy to share a connection config with omeone else
simply by pasting the URL in a mail/IM/whatever.
> For instance, 
> LDAP://<connection-name>@<ldap server host>:<port>/security=TLS?bindDN=uid=admin,ou=system?...(other
parameters)
> The URL syntax has to be defined, of course

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message