Users were not able to update their own password/key
with the update operation resulting in 403 (HTTPForbidden).
EXAMPLES:
Command to update password/key of regular user:
gswauth-add-user -U account1:user1 -K old_pass account1 user1 new_pass
Command to update password/key of account admin:
gswauth-add-user -U account1:admin -K old_pass -a account1 admin new_pass
Command to update password/key of reseller_admin:
gswauth-add-user -U account1:radmin -K old_pass -r account1 radmin new_pass
Signed-off-by: Prashanth Pai <ppai@redhat.com>
Modify swift client import to work with newer versions (>= 1.7.4).
Correct this error :
swauth-cleanup-tokens -A https://swift.example.org/auth/ -K swauthkey --purge=account1
Traceback (most recent call last):
File "/usr/bin/swauth-cleanup-tokens", line 28, in <module>
from swift.common.client import Connection, ClientException
ImportError: No module named client
HTTP PUT requires a Content-Length header and many web servers (e.g. nginx)
enforce this limitation. The management utilities swauth-add-{account,user} and
also middleware.Swauth.handle_put_account do not specify Content-Length with
PUT requests, which causes requests routed through nginx to fail.
Fix this by including a Content-Length of zero for all HTTP PUTs.
N.B.: This is not needed for requests performed via make_pre_authed_request().
Signed-off-by: Apollon Oikonomopoulos <apollon@skroutz.gr>