[RESOLVED] Empty Self Service

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

March 1, 2023 - 11:25

Hello, I'm having trouble with self-service (WAPT Enterprise).
I created an OU package at the root of my organization, inside which I put a generic self-service package and some groups. Everything is in lowercase in Active Directory and in WAPT: `
app_toto` : all users can see the applications in it (group: everyone in Active Directory);
`app_toto_admin` : all members of the admin group are in the Active Directory group.

So, naturally, admin members have access to the latest rules. However, I have one member of the admin group whose store is empty, while another member has all the apps. Both have the exact same machine configuration, and in Active Directory, they are members of the same groups. I admit I'm stumped.
Have I missed something?

As a follow-up question, one person is getting an "unhandled error" when trying to connect to the console.
Where can I find the console logs? Can't we retrieve a client's logs from the console?
Debian 11
WAPT Version: 2.4.0.14143
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

March 1, 2023 - 11:55

Hello,

the problem varies depending on your configuration.

There are several modes:

the default mode on the agent, the system mode (username/password) is passed to the system, which calculates the groups and verifies the username/password;

the other mode, waptserver-ldap, passes the username/password to the Wapt server, which then makes an LDAP request to verify the user's username/password and the groups they belong to; and

the last mode, waptserver-ldap + Kerberbos.
This mode allows transparent authentication to the Wapt server and does not require a password from the user. (It's still LDAP on the Wapt server side, but this time the connection is made with a service account.)

Can you confirm that you are in the default mode?

https://www.wapt.fr/fr/doc/wapt-advance ... tification

Simon
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

March 1, 2023 - 11:58

Thanks for the quick reply, I'm using the default configuration.
However, after digging around, I see that my Wapt clients' configuration (wapt-get.ini) is different. I'm trying to standardize it to see if that makes a difference.
Julien
Debian 11
WAPT Version: 2.4.0.14143
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

March 1, 2023 - 3:22 PM

Okay, I did a clean install, purging the old configuration, but still nothing.
I did the same thing on another machine, and it works there. So there must be a problem with his machine's configuration, but I can't figure out what.
Is there a log file related to the self-service that I can check?
Debian 11
WAPT Version: 2.4.0.14143
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

March 1, 2023 - 5:21 PM

You might find something in C:\Program Files (x86)\wapt\log\waptservice.log

When you're logged into the system account (are you on a Windows machine?), Windows will query Active Directory in real time to check the group access. Is Active Directory available?

To perform the test in pure Python, you can try this

This will return True if the user is indeed a member of the group

Code: Select all

C:\Windows\System32>waptpython
Python 3.8.16 (default, Feb  9 2023, 14:27:13) [MSC v.1929 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

>>> import win32security
>>> username = "username"
>>> password = "password"
>>> domain = "MYDOMAIN"
>>> mygroup = "mygroup"
>>> huser = win32security.LogonUser(username, domain, password, win32security.LOGON32_LOGON_NETWORK_CLEARTEXT, win32security.LOGON32_PROVIDER_DEFAULT)
>>> sid, system, type = win32security.LookupAccountName(None, mygroup)
>>> win32security.CheckTokenMembership(huser, sid)
True
If it works here, then the problem is elsewhere
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

March 1, 2023 - 5:40 PM

Yes, yes, I am indeed on Windows. However, I just remembered that we migrated to a Windows domain last year and converted the local profiles to domain profiles. If I understand the process correctly:
For self-service authentication, WAPT will use the local account on the machine and then query Active Directory for permissions?
So, on a machine, if I have myuser and myuser.mydomain.lan, 's login myuser is different from the domain account's login?
Debian 11
WAPT Version: 2.4.0.14143
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

March 2, 2023 - 10:44

By default, the domain is set to empty.


The WAPT code manages the domain if you pass your username with "MYDOMAIN\username" or "username@mydomain.lan".

If the domain is set to empty, then Windows handles it. Therefore, in the case of a local account with the same username as the domain account, there's a good chance it will fail.

Windows will first try locally. If the password is identical to the local account, then it works.

However, your local account is not a member of the domain group.
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

March 2, 2023 - 10:52

Okay, that's pretty much what I thought.
I had already configured LDAP authentication on the server for the console. If I enable agent authentication, will it bypass the local user and send the request to the server, which will then authenticate itself?
Do I just need to add the lines to the wapt-conf-policy file?

Code: Select all

inifile_writestring(WAPT.config_filename, 'global', 'service_auth_type', 'waptserver-ldap')
inifile_writestring(WAPT.config_filename, 'global', 'ldap_auth_ssl_enabled', 'True')
Debian 11
WAPT Version: 2.4.0.14143
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

March 2, 2023 - 10:54

That's it, just ldap_auth_ssl_enabled is not necessary:

This is sufficient:

Code: Select all

inifile_writestring(WAPT.config_filename, 'global', 'service_auth_type', 'waptserver-ldap')
And if you add Kerberos, authentication will be seamless
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

March 2, 2023 - 10:55

Kerberos is the next step; I'll test it this way first. Thanks for the feedback
Debian 11
WAPT Version: 2.4.0.14143
Locked