|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
[jira] Created: (DIRSTUDIO-356) Add a way to get the connection config as an URLAdd 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. |
|
|
[jira] Commented: (DIRSTUDIO-356) Add a way to get the connection config as an URL[ 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. |
|
|
[jira] Commented: (DIRSTUDIO-356) Add a way to get the connection config as an URL[ https://issues.apache.org/jira/browse/DIRSTUDIO-356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625403#action_12625403 ] Pierre-Arnaud Marcelot commented on DIRSTUDIO-356: -------------------------------------------------- That's a very good idea to use LDAP URL's "X-" extensions! I think the bind password should be added when copy/pasting the URL. But it could maybe be interesting to have a specific preference for this behavior. > 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. |
|
|
[jira] Assigned: (DIRSTUDIO-356) Add a way to get the connection config as an URL[ https://issues.apache.org/jira/browse/DIRSTUDIO-356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefan Seelmann reassigned DIRSTUDIO-356: ----------------------------------------- Assignee: Stefan Seelmann > 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 > Assignee: Stefan Seelmann > 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. |
|
|
[jira] Commented: (DIRSTUDIO-356) Add a way to get the connection config as an URL[ https://issues.apache.org/jira/browse/DIRSTUDIO-356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625515#action_12625515 ] Stefan Seelmann commented on DIRSTUDIO-356: ------------------------------------------- Added a first implementation here: http://svn.apache.org/viewvc?rev=688867&view=rev I have the following problem, not sure if this must be handled in my code or if there are encoding issues in the LdapURL class or if an LDAP URL doesn't support non-ASCII characters. When my connection name has non-ASCII characters (e.g. Ä alias %C4 (ULR encoded) alias C384 (UTF-8 encoded)) then the extension part of the resulting URL string contains these non-ASCII characters. When parsing this string back to an LdapURL it just contains an '?'. Has anyone an hint how to handle it? Here is some test code: public void testNonAscii() throws Exception { String A_uml = new String( new byte[] { (byte)0xC3, (byte)0x84 }, "UTF-8" ); LdapURL url1 = new LdapURL(); url1.setHost( "localhost" ); url1.setPort( 389 ); url1.setDn( LdapDN.EMPTY_LDAPDN ); url1.getExtensions().put( "X-CONNECTION-NAME", A_uml ); System.out.println(url1.toString()); System.out.println(url1.getExtensions()); LdapURL url2 = new LdapURL("ldap://localhost:389/????X-CONNECTION-NAME=" + A_uml); System.out.println(url2.toString()); System.out.println(url2.getExtensions()); LdapURL url3 = new LdapURL("ldap://localhost:389/????X-CONNECTION-NAME=%C4"); System.out.println(url3.toString()); System.out.println(url3.getExtensions()); } > 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 > Assignee: Stefan Seelmann > 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. |
|
|
[jira] Resolved: (DIRSTUDIO-356) Add a way to get the connection config as an URL[ https://issues.apache.org/jira/browse/DIRSTUDIO-356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefan Seelmann resolved DIRSTUDIO-356. --------------------------------------- Resolution: Fixed Fixed the URL encoding according to RFC 4516: http://svn.apache.org/viewvc?rev=689638&view=rev > 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 > Assignee: Stefan Seelmann > 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. |
|
|
[jira] Updated: (DIRSTUDIO-356) Add a way to get the connection config as an URL[ https://issues.apache.org/jira/browse/DIRSTUDIO-356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pierre-Arnaud Marcelot updated DIRSTUDIO-356: --------------------------------------------- Component/s: studio-ldapbrowser > 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 > Components: studio-ldapbrowser > Reporter: Emmanuel Lecharny > Assignee: Stefan Seelmann > 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. |
| Free Forum Powered by Nabble | Forum Help |