| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
| |
fix #8 and #9
|
| |
|
| |
|
|
|
|
|
|
| |
Some of the code from a previous merge did not use braces for all
variables and also simplified the response codes from failed checks.
This change returns the actual non-zero response when possible.
|
| |
|
|
|
|
|
| |
This option provides the mechanism required to send "--atdomain
AD.EXAMPLE.COM" to kinit-host.
|
|
|
|
| |
fix #5 document the recommended use of "-f" for first run
|
|
|
|
|
|
|
|
|
|
|
| |
Since the value of $? survives command substitution and variable
assignment, we can capture and evaluate it. The next hurdle is that
by default only the return code of the last command in a pipe is
returned which is an awk in our case that will always succeed
because it'll just get no input if ldapsearch fails. This can be
worked around using shell option pipefail but this is a bashism. Instead
we go the route of writing it to a temporary file in a group command as
elsewhere in the code.
|
|
|
|
|
|
| |
dash honors our trapping of SIGCHLD and will cause the script to exit
after the first external command finishes executing. Strangely enough,
bash seems to ignore the same attempt to catch SIGCHLD.
|
|
|
|
|
|
|
| |
The echo builtin of dash has no -n option. Flatten echoing of the
password to two consecutive standard echos in a group command so output
can be piped to passwd in order to achive the required newlines in the
output.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the password change timestamp LDAP attribute is unset, e.g. because
the host has been freshly added, the search will return an empty value
which will cause an error message from datetime.py:
Traceback (most recent call last):
File "src/usr/share/laps/dependencies/datetime.py", line 47, in <module>
print action(float(timestamp))
ValueError: could not convert string to float:
With this change we initialise ts_epoch to zero and leave it at that if
the attribute is not set to avoid the error and cause an immediate
password change.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
fix $2 read action should provide date of expiration on -d 1
fix #3 add readme.md to front directory
fix #4 laps does not recognize expired kerberos tickets
rpm: actually complete builds with rpkg on copr
|
|
|