[Kimchi-devel] [PATCH] [Wok] Bug fix #207: Fix LDAPUser class initialization

Aline Manera posted 1 patch 4 years, 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/kimchi-wok tags/patchew/20170315125803.8730-1-alinefm@linux.vnet.ibm.com
src/wok/auth.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

[Kimchi-devel] [PATCH] [Wok] Bug fix #207: Fix LDAPUser class initialization

Posted by Aline Manera 4 years, 1 month ago
It was wrongly calling PAMUser instance on LDAPUser class
initialization.

Signed-off-by: Aline Manera <alinefm@linux.vnet.ibm.com>
---
 src/wok/auth.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wok/auth.py b/src/wok/auth.py
index 976d729..0ad1893 100644
--- a/src/wok/auth.py
+++ b/src/wok/auth.py
@@ -192,7 +192,7 @@ class LDAPUser(User):
     auth_type = "ldap"
 
     def __init__(self, username):
-        super(PAMUser, self).__init__(username)
+        super(LDAPUser, self).__init__(username)
 
     @staticmethod
     def authenticate(username, password):
-- 
2.9.3

_______________________________________________
Kimchi-devel mailing list
Kimchi-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/kimchi-devel

Re: [Kimchi-devel] [PATCH] [Wok] Bug fix #207: Fix LDAPUser class initialization

Posted by Lucio Correia 4 years, 1 month ago
Reviewed-By: Lucio Correia <luciojhc@linux.vnet.ibm.com>

On 15/03/2017 09:58, Aline Manera wrote:
> It was wrongly calling PAMUser instance on LDAPUser class
> initialization.
>
> Signed-off-by: Aline Manera <alinefm@linux.vnet.ibm.com>
> ---
>  src/wok/auth.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/wok/auth.py b/src/wok/auth.py
> index 976d729..0ad1893 100644
> --- a/src/wok/auth.py
> +++ b/src/wok/auth.py
> @@ -192,7 +192,7 @@ class LDAPUser(User):
>      auth_type = "ldap"
>
>      def __init__(self, username):
> -        super(PAMUser, self).__init__(username)
> +        super(LDAPUser, self).__init__(username)
>
>      @staticmethod
>      def authenticate(username, password):
>


-- 
Lucio Correia

_______________________________________________
Kimchi-devel mailing list
Kimchi-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/kimchi-devel

Re: [Kimchi-devel] [PATCH] [Wok] Bug fix #207: Fix LDAPUser class initialization

Posted by Aline Manera 4 years, 1 month ago
Applied. Thanks.

Regards,

Aline Manera

_______________________________________________
Kimchi-devel mailing list
Kimchi-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/kimchi-devel