Less-than-optimal behavior reported by Alexander Perlis <aperlis@math.lsu.edu>.
FossilOrigin-Name: ccbc3dc1b0e9f73b6b73f2c9ab1bd2d30f798c9d8e7efbdb8b0f178045239b96
Make the behaviour of cd, edit and mkdir similar to cat and delete/rm
and fail if some RDN's in the argument contain spaces without beeing
quoted.
---
shelldap | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
FossilOrigin-Name: f42d5c35c901e515ae774e087fd2cc77766a7e17adc381aa5d83ffb70e9261d3
run_edit: convert to using path_to_dn()
run_copy & run_move: convert to using path_to_dn()
run_grep: convert to using path_to_dn()
run_passwd: convert to using path_to_dn()
FossilOrigin-Name: fc6d77c7619cabcd8f79bc3f7e41fd2627e246ee011858eb23af9d5dfe827970
path_to_dn() replaces the occurrences of '~', '.' and '..' in a path given
and returns a DN.
However, it does not check whether the DN is valid.
Especially:
- on return it is not guaranteed that the DN exists
- on return the first part does not need to be a valid RDN
FossilOrigin-Name: 1a4e3173146358f3a34c1e0c1d220b87c85a4827431c677adb9f0249bab73982
Depending on the naming attribute given, support the objectclasses
'country' and 'organization' in addition to the default
'organizationalUnit'.
FossilOrigin-Name: 3e9d896cacfa7e1fe533c608a1f7fd7755591736c673d0c7e60e9a0cb0209a89
Treat filter elements correctly that may be more complex filters
themselves; e.g. '(&(sn=Doe)(givenname=John))'
FossilOrigin-Name: 02ee84e2eaf12885398020776440753ae7915c076db55df9416cf89114612d54
From 232fbd24ff43c9c0d0691cf0e1b51a82ef099489 Mon Sep 17 00:00:00 2001
Make run_list work with a properly defined argument syntax:
- start with (optional) options: -R -l
- continue with filter ['(objectclass=*)' as fallback if none given]
- end with attributes (also optional)
Add method is_valid_filter() to check whether a strig is a legal LDAP filter.
FossilOrigin-Name: ec19e834a29e23820ee6088da8ff4d80edb14eb3668050edcbb9c32f8ed5297c
LDAP does not know of an attribute named 'dn'.
To get only the DN in a search, the attriibute list to use is '1.1'.
On all other cases, the DN of the entries found is automaticlly
part of the result set too.
FossilOrigin-Name: 7fd8da252b548c1dfe609c0b87f68370f316a53cdb88954e24353587169181bf
Treat '..' as any shell does:
- while the path given starts with '..', strip away
the first element of the current base DN
- use ',' as separator
- if anything remains in thep ath given, prepend it to
the stripped down baseDN
- use the result as the new base DN
FossilOrigin-Name: 5a94d3451ecbc149ccd822cdaaaa818a6d3de502695c39cf3e9ae14b75ad4394
Only accept DNs as arguments to base that are legal DNs.
Convert DN given into canonical form.
FossilOrigin-Name: a0488120c18e20d452ec6ebe8b44e009fca7839c39b0af5524254ea6bd4294e3
Accept short name equivalents like in ldap... commands
for 'server', 'basedn' and 'binddn'.
FossilOrigin-Name: 2a477673e78e48e84945078f4885a5c705b7d194d982296587002229dcb7b83b
but the user is requesting SSL/TLS. (this is normally required by
Net::LDAP.)
FossilOrigin-Name: ae25e363ef83020513510190bab0c2c75b879b4afae7cf2ef304d171f7c3bb0e
to Jonathan Rozes <jonathan@laika.com> for the idea, and Michael Granger
<ged@faeriemud.org> for telling me about the hasSubordinates attribute
(that he was already using to do exactly this in the Treequel-based ruby
shell, heh!)
FossilOrigin-Name: 0ba6d54560597cf729b319c54229a6331218cd31d18e7e0edddfa5f132480c3d
Many thanks to Josef Wells <Josefwells@alumni.utexas.net>!
Small whitespace cleanup.
Display correct configuration file in error message, if a YAML parse
error occurred.
FossilOrigin-Name: 99f501e7bae77e1df4573d9701d7876eb698551d27e9b46eddee0bf93386ab3f