Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8899147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:47:23+00:00 2026-06-15T00:47:23+00:00

ACL_SID table that is used in Spring security ACL contains name of the user

  • 0

ACL_SID table that is used in Spring security ACL contains name of the user as one of the columns. I am wondering about the best way to modify this value. This is necessary for example when a user name corresponding to an already existing user is changed. It doesn’t look like JdbcMutableAclService supports this functionality. Any help is appreciated.

Thanks,
Raghu

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T00:47:24+00:00Added an answer on June 15, 2026 at 12:47 am

    You can extend JdbcMutableAclService class and add new method that is needed.

    In your constructor you can create instance of JdbcTemplate:

    public YourClassName(DataSource dataSource, LookupStrategy lookupStrategy, AclCache aclCache) {
        super(dataSource, lookupStrategy, aclCache);
        this.jdbcTemplate = new JdbcTemplate(dataSource);
        this.aclCache = aclCache; 
    }
    

    Now you can use that JdbcTemplate in your new method to update SID’s username.

    jdbcTemplate.update("update acl_sid set sid = ? where sid = ?", newUsername, oldUsername);
    

    Remember about unique constraint

    constraint unique_uk_1 unique(sid,principal)
    

    JdbcTemplate can throw DataAccessException in case of failure. For instance DataIntegrityViolationException is thrown when SID with that name already exists in your database.

    Also remember about transactions.

    As you can see Spring Security is using AclCache to perform more efficiently. You’d better evict everything from that cache on every username update. You can use void clearCache(); method for that. AclCache is a private member of your superclass so you need to remember that instance inside your class (look at suggested constructor’s body).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a project that involves Spring Security ACL and I came
I'm following this ACL tutorial here and I noticed that the aros_acos table contains
Spring Security ACL plugin for grails by default uses the BasePermission class with 4
i am creating a acl controller plugin that checks the if the user is
I think Zend ACL is used to give permissions to user types (student, teacher).
In many tutorial of Acl component in cakephp i got instruction that add component
I'm trying to implement an ACL and I would like your opinion about which
We are planning to implement ACL on our Linux platform. Only one particular group
I'm using ACL and Auth in my application. If a logged-out user loads an
I have used ACL in CakePHP 1.3 without a single issue, after 2 weeks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.