Menu

Bug in _nss_mysql_load_memsbygid

Help
SyncOps
2007-02-28
2013-04-17
  • SyncOps

    SyncOps - 2007-02-28

    When I add a user to a group (gid=3000) which has 63 members suddenly all users are removed from the group.

    executing id [user] showed following in debug:

    _nss_mysql_run_query: Executing query: SELECT username FROM grouplist WHERE gid='3000'
    _nss_mysql_connect_sql: ENTER
    _nss_mysql_check_existing_connection: ENTER
    _nss_mysql_validate_socket: ENTER
    _nss_mysql_is_same_sockaddr: ENTER
    _nss_mysql_is_same_sockaddr: EXIT (TRUE)
    _nss_mysql_is_same_sockaddr: ENTER
    _nss_mysql_is_same_sockaddr: EXIT (TRUE)
    _nss_mysql_validate_socket: EXIT (TRUE)
    _nss_mysql_check_existing_connection: EXIT (TRUE)
    _nss_mysql_connect_sql: Using existing connection
    _nss_mysql_connect_sql: EXIT (NSS_SUCCESS)
    _nss_mysql_run_query: EXIT (NSS_SUCCESS)
    _nss_mysql_load_memsbygid: ENTER
    _nss_mysql_fetch_row: ENTER
    _nss_mysql_fetch_row: EXIT (NSS_SUCCESS)
    [ removed multiple repeats of same 2 lines]
    _nss_mysql_fetch_row: ENTER
    _nss_mysql_fetch_row: EXIT (NSS_SUCCESS)
    _nss_mysql_load_memsbygid: EXIT (NSS_TRYAGAIN)
    _nss_mysql_close_result: ENTER
    _nss_mysql_close_result, calling mysql_free_result()
    _nss_mysql_close_result: EXIT
    _nss_mysql_lookup: EXIT (NSS_TRYAGAIN)
    _nss_mysql_load_group: EXIT (NSS_TRYAGAIN)
    _nss_mysql_lookup: EXIT (NSS_TRYAGAIN)
    _nss_mysql_getgrent_r: EXIT (NSS_TRYAGAIN)

    When i remove the grouplist record, other users are back in the group. logging shows:

    _nss_mysql_load_memsbygid: EXIT (NSS_SUCCESS)
    _nss_mysql_close_result: ENTER
    _nss_mysql_close_result, calling mysql_free_result()
    _nss_mysql_close_result: EXIT
    _nss_mysql_lookup: EXIT (NSS_SUCCESS)
    _nss_mysql_load_group: EXIT (NSS_SUCCESS)
    _nss_mysql_lookup: EXIT (NSS_SUCCESS)
    _nss_mysql_getgrent_r: EXIT (NSS_SUCCESS)

    Any comment ?

     
    • SyncOps

      SyncOps - 2007-08-01

      dear Readers,

      Some time ago I wrote about issues regarding lots of users in a group.

      When i gave up on this lib and switched back to using the group file my issue remained. Sorry for indicating that this lib was the source of my problem.

      After further research i read about a limit in the C language and somebody suggested the following solution:

      Split your users into multiple group lines in the group file:
      www:*:80:user1,user2
      www:*:80:user3,user4

      This solved the issue for me, i wonder if you can replicate this in your great library.

      Kind regards

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.