user_pwauth issueshttps://framagit.org/veretcle/user_pwauth/-/issues2024-03-10T02:49:22Zhttps://framagit.org/veretcle/user_pwauth/-/issues/25Trying to access array offset on value of type bool2024-03-10T02:49:22ZDaniel MoranteTrying to access array offset on value of type boolI enabled the option to limit UNIX login to users in a specific UNIX (ie. "A group where the authorized NextCloud Users are")
After doing so I am seeing the following error in my logs for all types users.
```
{"reqId":"lvI5vvuWiqACj9Tsq...I enabled the option to limit UNIX login to users in a specific UNIX (ie. "A group where the authorized NextCloud Users are")
After doing so I am seeing the following error in my logs for all types users.
```
{"reqId":"lvI5vvuWiqACj9Tsq8LE","level":3,"time":"2024-03-10T02:03:47+00:00","remoteAddr":"192.168.0.72","user":"XXXXXXX","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications?format=json","message":"Trying to access array offset on value of type bool at /usr/local/www/nextcloud/apps/user_pwauth/lib/UserPwauth.php#60","userAgent":"Mozilla/5.0 (FreeBSD) mirall/3.11.0git (Nextcloud, freebsd-13.2-RELEASE-p10 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.1.1","data":{"app":"PHP"}}
```
This appears to be the code in question:
```
} else { //group variables is not empty so we’re getting the UID list from the group name
$list = posix_getgrnam($this->pwauth_group)['members'];
foreach($list as $entry) {
$r[] = posix_getpwnam($entry)['uid'];
}
}
```
So I am guessing that `posix_getpwnam()` is somehow failing and returning a `false`. My guess is that there is a member in the group for a user that doesn't exist (for whatever reason).
Maybe this would work instead?
```
foreach($list as $entry) {
$user_info = posix_getpwnam($entry);
if (!$user_info){ continue; }
$r[] = $user_info['uid'];
}
unset($user_info);
```https://framagit.org/veretcle/user_pwauth/-/issues/24Does it work with NC 27?2023-10-19T10:04:47ZAndreas VetterDoes it work with NC 27?NC 27 is out. Does user_pwauth still work with NC 27?NC 27 is out. Does user_pwauth still work with NC 27?https://framagit.org/veretcle/user_pwauth/-/issues/16Deprecation warning2022-12-21T08:08:35ZVCDeprecation warningAs mentioned in #14, there are some deprecation warning on `app.php` :
```
{"reqId":"43MoxS2MYM3qAKdVf9go","level":0,"time":"January 07, 2021 20:08:09","remoteAddr":"10.10.110.40","user":"h.boetes","app":"files_sharing","method":"GET","...As mentioned in #14, there are some deprecation warning on `app.php` :
```
{"reqId":"43MoxS2MYM3qAKdVf9go","level":0,"time":"January 07, 2021 20:08:09","remoteAddr":"10.10.110.40","user":"h.boetes","app":"files_sharing","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0","version":"20.0.4.0"}
```VCVChttps://framagit.org/veretcle/user_pwauth/-/issues/20disable logon with email2022-12-03T07:43:46ZHan Boetesdisable logon with emailThe web interface login dialogue mentions it is possible to log in with either username or email, and the login works, but after that things get weird, and I have to explain again and again people should log on with their username.
The ...The web interface login dialogue mentions it is possible to log in with either username or email, and the login works, but after that things get weird, and I have to explain again and again people should log on with their username.
The user_ldap plugin has a fix for that, I even found the commit that applies the fix.
https://github.com/nextcloud/server/pull/3698/files
Could you do something similar for your plugin?https://framagit.org/veretcle/user_pwauth/-/issues/15GECOS search2021-01-10T08:19:22ZVCGECOS searchAs mentionned in #14, it would be nice to have the ability to search by GECOS field (user comment) in conjunction with the name search.As mentionned in #14, it would be nice to have the ability to search by GECOS field (user comment) in conjunction with the name search.VCVChttps://framagit.org/veretcle/user_pwauth/-/issues/8Fix the "not able to create an email" error2019-02-02T11:57:06ZVCFix the "not able to create an email" errorAs suggested by @ThyMaster in #6
It has been a flaw in the extension since the very beginning: there was a bug in ownCloud habilitation in the extension user implementation that don't allow external user to store mail addresses.
I thin...As suggested by @ThyMaster in #6
It has been a flaw in the extension since the very beginning: there was a bug in ownCloud habilitation in the extension user implementation that don't allow external user to store mail addresses.
I think this might be fixed now so why not try again.VCVC2019-02-09