# \#laminas-authentication

**URL:** https://discourse.laminas.dev/tag/laminas-authentication/77.md

[Latest](https://discourse.laminas.dev/latest.md) · [Categories](https://discourse.laminas.dev/categories.md) · [Tags](https://discourse.laminas.dev/tags.md)

---

## [Laminas Authentication login TTL/persistence](https://discourse.laminas.dev/t/laminas-authentication-login-ttl-persistence/3881)

<div class="topic-metadata">

**Author:** [@Jilco](https://discourse.laminas.dev/u/Jilco)\
**Replies:** 11\
**Last updated:** [April 3, 2025, 11:41am UTC](https://discourse.laminas.dev/t/laminas-authentication-login-ttl-persistence/3881 "2025-04-03T11:41:45Z")

</div>

How to configure a login (with Authentication module) to automaticaly logout after 1 hour? I tried below in global.php without succes. // Session configuration. 'session\_config' =\> \[ 'cookie\_lifetime' …

---

## [Authenticate only with status active (2)](https://discourse.laminas.dev/t/authenticate-only-with-status-active-2/3880)

<div class="topic-metadata">

**Author:** [@Jilco](https://discourse.laminas.dev/u/Jilco)\
**Replies:** 4\
**Last updated:** [March 27, 2025, 2:39am UTC](https://discourse.laminas.dev/t/authenticate-only-with-status-active-2/3880 "2025-03-27T02:39:47Z")

</div>

I want to only an active user account with Laminas Authentication, so when status is 2 in the database the login has to proceed. With only email and password everything is working fine, how to add the status in de adapte…

---

## [Understanding Salt security](https://discourse.laminas.dev/t/understanding-salt-security/3674)

<div class="topic-metadata">

**Author:** [@malwon](https://discourse.laminas.dev/u/malwon)\
**Replies:** 3\
**Last updated:** [April 30, 2024, 10:52am UTC](https://discourse.laminas.dev/t/understanding-salt-security/3674 "2024-04-30T10:52:33Z")

</div>

Hello, I have problems understanding the example in the docs about salting. The following SQL did noct work for me: \`PASSWORD(CONCAT('staticSalt', ?, password\_salt))\` Laminas\\Authentication\\Result::getCode returns: -…

---

## [Invalid credentials; getLastError: could not call ldap\_get\_option because LDAP resource was not of type resource](https://discourse.laminas.dev/t/invalid-credentials-getlasterror-could-not-call-ldap-get-option-because-ldap-resource-was-not-of-type-resource/3549)

<div class="topic-metadata">

**Author:** [@pasglop](https://discourse.laminas.dev/u/pasglop)\
**Replies:** 2\
**Last updated:** [November 25, 2023, 10:49am UTC](https://discourse.laminas.dev/t/invalid-credentials-getlasterror-could-not-call-ldap-get-option-because-ldap-resource-was-not-of-type-resource/3549 "2023-11-25T10:49:12Z")

</div>

Hi, I would like to set up a simple Ldap authentication system using, as indicated in the doc : use Laminas\\Authentication\\AuthenticationService; use Laminas\\Authentication\\Adapter\\Ldap as LdapAdapter; public function…

---

## [SessionStorage expiration time](https://discourse.laminas.dev/t/sessionstorage-expiration-time/3528)

<div class="topic-metadata">

**Author:** [@sergey](https://discourse.laminas.dev/u/sergey)\
**Replies:** 4\
**Last updated:** [November 9, 2023, 11:35am UTC](https://discourse.laminas.dev/t/sessionstorage-expiration-time/3528 "2023-11-09T11:35:16Z")

</div>

Hello, I created authorization based on AuthenticationService with using SessionStorage. Configured like: 'session\_config' =\> \[ 'cookie\_lifetime' =\> 60\*60\*24\*30, 'gc\_maxlifetime' =\> 60\*60\*…

---

## [Integration between laminas-authentication, lmcuser and lmc\_rbac](https://discourse.laminas.dev/t/integration-between-laminas-authentication-lmcuser-and-lmc-rbac/3339)

<div class="topic-metadata">

**Author:** [@medge](https://discourse.laminas.dev/u/medge)\
**Replies:** 3\
**Last updated:** [May 31, 2023, 11:33pm UTC](https://discourse.laminas.dev/t/integration-between-laminas-authentication-lmcuser-and-lmc-rbac/3339 "2023-05-31T23:33:31Z")

</div>

Hi, I’m having some trouble connecting a bunch of components together. I think I’m pretty close but I’m presumably declaring the reference to the authentication factory incorrectly. laminas-session is installed lamina…

---

## [Can we add Schema for table\_name in a CredentialTreatmentAdapter for authentification?](https://discourse.laminas.dev/t/can-we-add-schema-for-table-name-in-a-credentialtreatmentadapter-for-authentification/3002)

<div class="topic-metadata">

**Author:** [@Dautheville.dylan](https://discourse.laminas.dev/u/Dautheville.dylan)\
**Replies:** 5\
**Last updated:** [August 19, 2022, 6:19am UTC](https://discourse.laminas.dev/t/can-we-add-schema-for-table-name-in-a-credentialtreatmentadapter-for-authentification/3002 "2022-08-19T06:19:57Z")

</div>

Hello, I work to a migration of an old app who running with ZF1 and I have a problem for authentification with authentification with a CredentialTreatmentAdapter. In fact my table where’s I have my ID and password is i…

---

## [Unable to resolve service error](https://discourse.laminas.dev/t/unable-to-resolve-service-error/2986)

<div class="topic-metadata">

**Author:** [@Tyrsson](https://discourse.laminas.dev/u/Tyrsson)\
**Replies:** 22\
**Last updated:** [August 7, 2022, 8:14pm UTC](https://discourse.laminas.dev/t/unable-to-resolve-service-error/2986 "2022-08-07T20:14:44Z")

</div>

Let me see if I can explain exactly what issue I am facing. When I started using Laminas I installed the skeleton application and various packages that I wanted to look into. One of those was Laminas-Di. Since then I hav…

---

## [Authentication example when use Psr handler](https://discourse.laminas.dev/t/authentication-example-when-use-psr-handler/2773)

<div class="topic-metadata">

**Author:** [@voltan](https://discourse.laminas.dev/u/voltan)\
**Replies:** 3\
**Last updated:** [February 23, 2022, 4:24am UTC](https://discourse.laminas.dev/t/authentication-example-when-use-psr-handler/2773 "2022-02-23T04:24:22Z")

</div>

Hello I set up some Middleware before my controller ( and have to change the controller to PSR handler ), I start work on the login handler Instead login controller and I don’t have access to MVC plugins in the handler. …

---

## [How to write Controller tests for actions requiring authentication?](https://discourse.laminas.dev/t/how-to-write-controller-tests-for-actions-requiring-authentication/2667)

<div class="topic-metadata">

**Author:** [@Koen1999](https://discourse.laminas.dev/u/Koen1999)\
**Replies:** 0\
**Last updated:** [December 24, 2021, 1:35pm UTC](https://discourse.laminas.dev/t/how-to-write-controller-tests-for-actions-requiring-authentication/2667 "2021-12-24T13:35:46Z")

</div>

I haven’t been able to find any documentation regarding this while I think it is quite a common use case. Most websites have some form of authentication or access control and being able to test this could improve our wor…

---

## [Problem about Laminas\\Mvc\\Plugin\\Identity](https://discourse.laminas.dev/t/problem-about-laminas-mvc-plugin-identity/2455)

<div class="topic-metadata">

**Author:** [@jobsfan](https://discourse.laminas.dev/u/jobsfan)\
**Replies:** 6\
**Last updated:** [August 24, 2021, 2:50am UTC](https://discourse.laminas.dev/t/problem-about-laminas-mvc-plugin-identity/2455 "2021-08-24T02:50:52Z")

</div>

I am working on the for a whole afternoon! Anybody can help me out? I installed Laminas\\Mvc\\Plugin\\Identity my project/config/modules.config.php return \[ 'Laminas\\Mvc\\Plugin\\FilePrg', 'Laminas\\Mvc\\Plugin…

---

## [How to Configure Multiple Sessions Storage for Laminas Authentication](https://discourse.laminas.dev/t/how-to-configure-multiple-sessions-storage-for-laminas-authentication/1857)

<div class="topic-metadata">

**Author:** [@Jose\_Wyne](https://discourse.laminas.dev/u/Jose_Wyne)\
**Replies:** 1\
**Last updated:** [September 28, 2020, 1:21pm UTC](https://discourse.laminas.dev/t/how-to-configure-multiple-sessions-storage-for-laminas-authentication/1857 "2020-09-28T13:21:23Z")

</div>

Kinldy help me setup multiple session storage for Laminas Authentication I have 4 classes of users namely :- Admin Super Admin Staff Cashier All of the above have Db Tables (From which i authenticate from) respective…

---

## [Allow only one IP to specific page](https://discourse.laminas.dev/t/allow-only-one-ip-to-specific-page/1731)

<div class="topic-metadata">

**Author:** [@Jilco](https://discourse.laminas.dev/u/Jilco)\
**Replies:** 2\
**Last updated:** [July 17, 2020, 9:17am UTC](https://discourse.laminas.dev/t/allow-only-one-ip-to-specific-page/1731 "2020-07-17T09:17:58Z")

</div>

How can i block specific pages and only allow one (of more) IP adresses?
