Commit graph

138 commits

Author SHA1 Message Date
6fe7488741
Update home repo links. 2025-06-28 17:03:07 -07:00
7cbbfe3de8 Remove Mercurial specific files.
FossilOrigin-Name: 8469b029cf09b01edfdfc475a73e2ed11c5a891433e5e79a0569cf249a3a1fa6
2024-12-30 06:57:44 +00:00
416a458607 Update package links, bump to 1.5.2. v1.5.2
FossilOrigin-Name: 6e85cfd34f81b729d25e3c6b869e08160288857f60bcf1e44ef8acd312ac9b90
2024-12-30 06:48:59 +00:00
fb26545a00 Update docs for Fossil.
FossilOrigin-Name: 434f0df7417ff94cc8cae33b1a8fcab9de5904b1b05175be5d924bc207fe57d5
2022-04-03 23:04:09 +00:00
d4c7e5d5f3 Revert an old LCS edge case fix in favor of a better one.
FossilOrigin-Name: 646a3154f00651907a13fb5823ed00e3e6ca509c7457c8bb3e533fa00a6aa583
2019-12-02 23:48:55 +00:00
7a65b31a6c Update for v1.5.1 release.
FossilOrigin-Name: 96666493d6e53237df8b60427fd5828c9478203f2e8b31984d361c0886532cc9
2019-10-13 17:52:25 +00:00
b9098f4e53 Fix sasl for DIGEST-MD5, PLAIN, and LOGIN mechanisms, which I don't think ever actually worked properly.
Add a sasluser argument if a specific identity is required for the
backend, which if unsupplied, tries to guess if a binddn is present.

(Uwe's previous commit fixed EXTERNAL and GSSAPI, which did work, but
randomly failed due to hash ordering.)


Minor style cleanups, remove duplicate/unecessary logic for anonymous
binds.

FossilOrigin-Name: b2bc73d1b624235cf17da960a5e3fd0df9c0ed714bc5f71db2cbea6009f255d5
2019-10-13 17:44:16 +00:00
uwe@kleine-koenig.org
14974b8a9f Don't provide a password for sasl authentication.
When a sasl parameter is given (and used) the password parameter is not
used by Net::LDAP. If indeed a password is required it has to be passed
in the Authen::SASL object, not as parameter to bind.

So drop the password parameter which stops trying (and failing) to use
password authentication sometimes if in Net/LDAP.pm the iteration over
%ptype hits its 'password' member before the 'sasl' member.

FossilOrigin-Name: b4e59a307c07b9a201ddd841cca963f689b424ad9e2ba6eb3f6522c955d722ad
2019-10-13 17:19:40 +00:00
08b07c4143 Fix typo.
FossilOrigin-Name: df5d12230b6407ed68d3ec9cac3a53b50b8c626583e98c84fd18debf17049756
2019-09-01 04:47:19 +00:00
58d1cc225c Bye, Bitbucket.
FossilOrigin-Name: 935db3014ca8921eefa67c8e769a62df0cf4ebb4ac0057fb05307cbfa15c19c9
2019-09-01 04:45:39 +00:00
8300c2f2e6 Minor pod formatting correction.
FossilOrigin-Name: 6ff3b0d06bbf207833c3861f433309b6d092fa6ded2780af9aab15e70f913954
2019-06-25 16:54:07 +00:00
04631442b5 Changelog updates for v1.5.0.
FossilOrigin-Name: 05085fbbc8d4fc215bf020fa673ea892e507777114c568e473edfd0dbf11f9c5
2019-06-25 16:51:45 +00:00
3e5e79a0f6 Merged in docelic/shelldap (pull request #2)
Reset isearch state on ctrl+c when using Readline 7

Approved-by: Mahlon E. Smith <mahlon@martini.nu>

FossilOrigin-Name: 3cda1c11ffaae15eda9c530b16cc8881c58ad1bd5b769583ff9b6876a05e28bc
2019-05-17 18:12:46 +00:00
docelic@crystallabs.io
0693bcf458 Reset isearch state on ctrl+c when using Readline 7
This change does not affect Readline versions below 7.
A fix for RL<7 would be to modify readline_state to turn off
ISEARCH and set DONE, but changing these values through the
Perl module does not appear to have visible effect.

FossilOrigin-Name: aafd253afe473a0a262860698a5a43e4db4d990565b353e6c1399ffc4c6658b5
2019-05-16 00:17:03 +00:00
c170d2dabf Added tag v1.5.0 for changeset d6a75d14db12
FossilOrigin-Name: 3d0f5bed0d5a138fa1cff736fd54c131487a587923ec243216e7dcf208c6f5b6
2019-05-13 17:46:30 +00:00
ee8de543f6 Update CONTRIBUTORS and bump version. v1.5.0
FossilOrigin-Name: f190307123035fe0bef078cd52e2fc81db66cdbae493f73acbf719eea5217fc8
2019-05-13 17:44:40 +00:00
docelic@crystallabs.io
2529c59c44 Improve defining aliases with = or ' '
FossilOrigin-Name: 4f4679531775a27e628d632735bd14150df79ae48654646499313d1caf75cefb
2019-05-08 18:45:04 +00:00
docelic@crystallabs.io
e794afe09a Multiple configfile-related changes
- Print current configfile in the output of 'env' (this also makes configfile changeable in runtime via 'setenv')
- In 'configfile' commands, print which config file is being used
- Fix behavior of existing 'more_conf'
- Make load_config() return filename and hash, rather than unconditionally overwrite $conf
- Bring back %conf2 into implementation of save_config; it is necessary to be there or 'configfile' is getting lost/deleted in the runtime config

Other changes

- Add 'set' as alias for 'setenv'
- Add unsetenv/unset (opposite of setenv/set)
- Do not print unset/undefined values in 'env'

FossilOrigin-Name: 7b35ca141e0dfc74d5165f49f9fd117fffd40c7f33e05bcb9bc0c5a14736bd98
2019-05-07 17:34:39 +00:00
docelic@crystallabs.io
a0ef512f42 Support separating aliases by space too
FossilOrigin-Name: d43b2b7086552734bd613a9398044e9431fb6eaea16131cd45bb30cb43ab47c4
2019-05-06 19:58:28 +00:00
docelic@crystallabs.io
deb044199f Use local implementation of slurp()
FossilOrigin-Name: 8dbbb620b86c4f0dca85a2be208473a7f1cc6ae5f8658b9edae342c347915550
2019-05-06 19:11:12 +00:00
docelic@crystallabs.io
248cedd05e Improve accepted command line options
This commit enables getopt case sensitivity and adds all command line
options/abbreviations typically supported by LDAP clients:

-w/-y, -p, -x, -Z/-ZZ, -v

FossilOrigin-Name: 5f3778ecf065e9bcf061b8b6a7e606dbb3a043169a03a7630c960f331d68d6b2
2019-05-05 08:51:34 +00:00
docelic@crystallabs.io
d3adc445d6 Support arrays/hashes in 'env' (WIP)
- 'env' now prints 'attributes' array
- 'env' output now supports any data type, not just strings
- option --attributes on command line properly overrides config values

The remaining thing to do is to support 'setenv' to work with non-strings too.

FossilOrigin-Name: 49c1455637cbce37e0b68a4e7c7286e51f2b6401a98e11f630db3c88f737821a
2019-05-05 08:14:17 +00:00
docelic@crystallabs.io
cbfcb17dc7 Add alias, unalias, configfile
- Add commands 'alias' and 'unalias'.
  Behavior is almost identical to shell.
  Aliases currently cannot override commands.

- Add command 'configfile'.
  Allows loading / saving config files from command line.

FossilOrigin-Name: b414f43dd61f73ca489f9a608b6b7b4c79594246f7c3cf24772ea3dd6b8a5ab3
2019-05-05 07:54:28 +00:00
docelic@crystallabs.io
c03ba4a650 With ls -l, print file type ('-' or 'd') as first field of output
This change brings output of 'ls -l' closer to the actual shell command.

FossilOrigin-Name: 7f38c81ca4c4844eae37e5450b3bda2f4bfdf4a68c840b81f3f2cd963bc0473d
2019-05-04 20:38:32 +00:00
docelic@crystallabs.io
1b07818e6a Improve save_config()
FossilOrigin-Name: 99d62ede397dea67cc9f7d6b5f4b6e3c8159a693c4dff023abac21440a72e486
2019-05-03 17:23:54 +00:00
docelic@crystallabs.io
dbb0341660 Add missing block to Term::Shell fix
(This corresponds to Term::Shell PR posted at
https://github.com/shlomif/Term-Shell/pull/3)

FossilOrigin-Name: 736db8905066a28cf2a7d8b0a25e2f91d66c4c2299c059b9c49212ffcc17bdcf
2019-04-30 10:07:28 +00:00
docelic@crystallabs.io
89880e320d Make aliases be auto-detected and inserted into help texts.
FossilOrigin-Name: 6911ac8e0c1a62dbd2eb319ee83d953eae7f86312835f14cd81bf5ccdac06d39
2019-04-29 23:10:00 +00:00
docelic@crystallabs.io
5dc5417902 Fix autocompleter for all commands.
FossilOrigin-Name: 7ed32fefcd1fa2274fc7a6d55caf567a7875c8dac630fbcd260ceea37025bdf1
2019-04-29 23:01:18 +00:00
docelic@crystallabs.io
c08875fa11 Multiple help-related changes
- Make every command's POD doc have a single-line introductory description.
This help is then used as a one-liner summary in Term::Shell.

- Tie %cmd_map to IxHash to preserve hash elements' order.

- Fix bug in Term::Shell's code related to command aliases.
(Also emailed Term::Shell author to include the fix in next release.)

- Remove run_() which already exists in Term::Shell.

- Use Term::Shell's help facilities instead of manually redefining
run_help() and other related commands. The complete POD documentation is
still available for viewing if user invokes ./shelldap --help.

- Completer functions are disabled right now (fix coming in the next
commit)

FossilOrigin-Name: a3bfbcceb8e471a3397b5e90cfe9bd0fa7ebe84934de738e34bc620a24f7fe5c
2019-04-29 22:43:51 +00:00
docelic@crystallabs.io
c89d193e53 Properly handle Ctrl+C; add '?' and 'man' aliases; don't import symbols
Make Ctrl+C behave like in the shell (abort current line, redisplay)
Add '?' and 'man' as aliases for help
Add qw// on module 'use's to not import any symbols

FossilOrigin-Name: fc4cb91774beb03f371ad04c5b26e45f6db49ae40af72bb2fbccc6c3c1a65e6f
2019-04-29 19:57:56 +00:00
docelic@crystallabs.io
69dbc50d3c Do not sort flaglist twice
With this change, 'inspect'ing an element prints its attributes
in a defined order: (requiredness, multivaluedness)

Previously, the order was alphabetical and varying.

FossilOrigin-Name: bb3518297cc3ffdd6a8a1db79e681431f56f6d395f5300e6f99d0f444fc5fd04
2019-04-28 22:16:14 +00:00
docelic@crystallabs.io
7c6a055f0c Make 'cat' default to '.' (cwd) instead of requiring argument
FossilOrigin-Name: 893d6cba578595b39026d5ee73566c354393b93619fc48822ce71b97da6f0e6b
2019-04-28 22:10:30 +00:00
docelic@crystallabs.io
56426af86c Improve command descriptions
FossilOrigin-Name: f2e5e85547ef9bd0730875c57283fd22ac72d4c50e6ae61dbd596d14325aa998
2019-04-28 22:09:43 +00:00
docelic@crystallabs.io
c43244840a Streamline %cmd_map
%cmd_map was previously a hash containing:

{
	real_function => alias_function,
	...
}

Now the structure of the hash is:

{
	alias_or_real_func => [ real_func/if_any, autocompleter_func ],
	...
}

This allows for a more streamlined definition of commands and aliases,
and makes it possible to keep all data in %cmd_map instead of having
additional special cases.

FossilOrigin-Name: ea3c724d1676d6f2ddfddfce22c3d32135ab20d26e81f10c39c4c10bc902b5e9
2019-04-28 21:42:26 +00:00
docelic@crystallabs.io
e522c8d4f7 Improve 'help' command
POD documentation has been modified to list available shell commands using =head2
instead of =item.

This, combined with run_help() modified to accept arguments, allows one to use
'help <command name>' to get help for a specific command, similar/equal to getting
help for shell builtins in regular shells.

E.g.:
	help cat
	help list

FossilOrigin-Name: 94e02e094f07f261abc084b1271832ee7640053397b1e32c7d6c72d452611986
2019-04-28 20:38:37 +00:00
docelic@crystallabs.io
4448213735 Fix precedence of command line arguments
Previously, when autogenerating the config file, the name of config
itself was included in the YAML contents.

This in turn caused the config file to be re-parsed again and any
command line arguments were overwritten with values from the config
file.

Now the name of config file is not dumped if it is equal to the file
being written, and the config file is not reparsed if it is the same
file.

FossilOrigin-Name: 9c4483633c8bcf36f4e98ce41ab0f54ea4620a4b7f21ccf07e563e49afbe0da6
2019-04-28 20:11:46 +00:00
docelic@crystallabs.io
da79de2320 Allow default attributes to be set via config and cmdline
This commit changes the default attribute list from a fixed '*'
to a configurable list, defaulting to ['*'].

It allows one to use config file or command line to set default
attributes to retrieve and display - i.e. to set default attributes
to '+' or to a list of multiple specific attributes.

Printing or changing this value through env/setenv is currently not
supported because env/setenv only work properly with string values
while attributes is a list.

FossilOrigin-Name: 8c312e181611c61d43a588d2aa2c6e3d231db490c29f40aee861a0e1832039fc
2019-04-28 19:40:06 +00:00
9949c492ce merge
FossilOrigin-Name: e9c1b30c4ee92eceb2ee6ac418fa445a4a2484bead92c120a6fa057f4ac73a80
2019-04-15 21:18:11 +00:00
9e01a4a51e Add LICENSE file for packaging, bump copyright.
FossilOrigin-Name: 402bf6ec5541677dc298f5b9301eaa889c2f687a972b11fd95843c95d09a8363
2019-04-15 21:16:09 +00:00
ebf69a9a1e Add a link to the Fedora package.
FossilOrigin-Name: f58da73b1b3ffad4b0c579fa06ac84407a339e48d2fd3172b9dafb5b655698fd
2018-04-04 19:30:00 +00:00
0a5e6a51b9 Added tag v1.4.0 for changeset e8af5aa8bd15
FossilOrigin-Name: 777c5cacb71634c21d812ef5e4979724b3e6aec88faf468399385f3d211ae339
2017-06-07 22:01:14 +00:00
fc643b1fd2 Update changelog. v1.4.0
FossilOrigin-Name: 6716f384828670ad0d206c7cbc1e4fab052502101d39a26bdcf2b475d1cb6760
2017-06-07 22:01:09 +00:00
8207fda510 Merge.
FossilOrigin-Name: 4e683968021d572e5259f3cfb2c63d910d1536ac3ed14669a39503fd6ad26e84
2017-06-07 21:59:48 +00:00
de3e84d10b Version bump.
FossilOrigin-Name: 7a05aebf2b38a97457665a66a8f2f6dd7cb35103a5d3ff7baac11ffdb4be7ec2
2017-06-07 21:49:05 +00:00
32202df1ab Make password extension usage consistent with pager control.
FossilOrigin-Name: 35ab0ba86667a1dee396ab98e1c16a3e19d810d3db80cee58bbe8c1c965208f7
2017-06-07 21:48:42 +00:00
2a068606e6 Optionally use the server side pager control for search results.
FossilOrigin-Name: 80a69ef0eaf294692b133e14c1611e6c60373da11c2edeae1d2554dbdb7b1bf3
2017-06-07 21:38:07 +00:00
carnil@debian.org
08ee88750d Fix spelling errors
FossilOrigin-Name: 3d98282a2de17a00fbd1c479334205960c6de1f82ac27bf96190adfbd4b91927
2016-03-05 08:00:00 +00:00
ecea49605e Added tag v1.3.2 for changeset aa4172c204d4
FossilOrigin-Name: 32ca44838140ea6061770c1113580bc77e9b4c766cb9813b2920607ec1285035
2016-01-13 19:14:25 +00:00
78acc1876e Add a "real" change log.
FossilOrigin-Name: 0bcc73d6482d57d4ee257d8354589ffe96947a32cc1394b24477283253b9c643
2016-01-13 19:14:17 +00:00
9b6a021ce2 README.md edited online with Bitbucket
FossilOrigin-Name: fc6ce06d556d3e243e381ac6dba904c25b002d7c1c1ad7979f96f4539f17708d
2016-01-12 08:22:14 +00:00