Skip to content

Issue 6446 - on replica consumer, account policy plugin fails to mana…#6448

Merged
tbordaz merged 1 commit into389ds:mainfrom
tbordaz:issue_6446
Dec 12, 2024
Merged

Issue 6446 - on replica consumer, account policy plugin fails to mana…#6448
tbordaz merged 1 commit into389ds:mainfrom
tbordaz:issue_6446

Conversation

@tbordaz
Copy link
Copy Markdown
Contributor

@tbordaz tbordaz commented Dec 12, 2024

…ge the last login history

Bug description:
An internal update needs the flag SLAPI_OP_FLAG_BYPASS_REFERRALS
on a RO consumer. Else the server does not select the backend
and returns LDAP_REFERRAL to the internal operation.
In acct_update_login_history the flag is missing.

Fix description:
Use the same flags in acct_update_login_history as it is
used in acct_record_login

fixes: #6446

Reviewed by:

accp.set('stateattrname', 'lastLoginTime')
except ldap.LDAPError as e:
log.error('Failed to enable Global Account Policy Plugin and Password policy attributes')
raise e
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very minor, but I don't think we need these try/excepts - just let it raise the error when it happens. Same for other code below.

…ge the last login history

Bug description:
	An internal update needs the flag SLAPI_OP_FLAG_BYPASS_REFERRALS
	on a RO consumer. Else the server does not select the backend
	and returns LDAP_REFERRAL to the internal operation.
	In acct_update_login_history the flag is missing.

Fix description:
	Use the same flags in acct_update_login_history as it is
	used in acct_record_login

fixes: 389ds#6446

Reviewed by: Mark Reynolds (Thanks!)
@tbordaz tbordaz merged commit 6873ced into 389ds:main Dec 12, 2024
tbordaz added a commit that referenced this pull request Dec 12, 2024
…ge the last login history (#6448)

Bug description:
	An internal update needs the flag SLAPI_OP_FLAG_BYPASS_REFERRALS
	on a RO consumer. Else the server does not select the backend
	and returns LDAP_REFERRAL to the internal operation.
	In acct_update_login_history the flag is missing.

Fix description:
	Use the same flags in acct_update_login_history as it is
	used in acct_record_login

fixes: #6446

Reviewed by: Mark Reynolds (Thanks!)
tbordaz added a commit that referenced this pull request Dec 12, 2024
…ge the last login history (#6448)

Bug description:
	An internal update needs the flag SLAPI_OP_FLAG_BYPASS_REFERRALS
	on a RO consumer. Else the server does not select the backend
	and returns LDAP_REFERRAL to the internal operation.
	In acct_update_login_history the flag is missing.

Fix description:
	Use the same flags in acct_update_login_history as it is
	used in acct_record_login

fixes: #6446

Reviewed by: Mark Reynolds (Thanks!)
tbordaz added a commit that referenced this pull request Dec 12, 2024
…ge the last login history (#6448)

Bug description:
	An internal update needs the flag SLAPI_OP_FLAG_BYPASS_REFERRALS
	on a RO consumer. Else the server does not select the backend
	and returns LDAP_REFERRAL to the internal operation.
	In acct_update_login_history the flag is missing.

Fix description:
	Use the same flags in acct_update_login_history as it is
	used in acct_record_login

fixes: #6446

Reviewed by: Mark Reynolds (Thanks!)
tbordaz added a commit that referenced this pull request Dec 12, 2024
…ge the last login history (#6448)

Bug description:
	An internal update needs the flag SLAPI_OP_FLAG_BYPASS_REFERRALS
	on a RO consumer. Else the server does not select the backend
	and returns LDAP_REFERRAL to the internal operation.
	In acct_update_login_history the flag is missing.

Fix description:
	Use the same flags in acct_update_login_history as it is
	used in acct_record_login

fixes: #6446

Reviewed by: Mark Reynolds (Thanks!)
tbordaz added a commit that referenced this pull request Dec 12, 2024
…ge the last login history (#6448)

Bug description:
	An internal update needs the flag SLAPI_OP_FLAG_BYPASS_REFERRALS
	on a RO consumer. Else the server does not select the backend
	and returns LDAP_REFERRAL to the internal operation.
	In acct_update_login_history the flag is missing.

Fix description:
	Use the same flags in acct_update_login_history as it is
	used in acct_record_login

fixes: #6446

Reviewed by: Mark Reynolds (Thanks!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

on replica consumer, account policy plugin fails to manage the last login history

2 participants