Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uid to windows SID mapping support #189

Open
wangyugui-e16 opened this issue Feb 3, 2023 · 5 comments
Open

uid to windows SID mapping support #189

wangyugui-e16 opened this issue Feb 3, 2023 · 5 comments

Comments

@wangyugui-e16
Copy link

Hi,

uid to windows SID mapping is used when

  • show acl in windows client
  • change ACL from windows client

test result show that there are same issues about this feature.

@wangyugui-e16
Copy link
Author

seperated from #187

from [hcbwiz]
About id mapping API, there are two libraries: libsss-idmap and libsss-nss-idmap
I try libsss-nss-idmap:

#include <sss_nss_idmap.h>
#include <stdio.h>
#include <stdlib.h>

int main()
{
        char *sid = NULL;
        enum sss_id_type type;
        int ret;

        ret = sss_nss_getsidbyname("administrator", &sid, &type);
        printf("ret: %d, sid: %s, type: %d\n", ret, sid, type);
        free(sid);
}

output:

ret: 0, sid: S-1-5-21-3675874838-1964521148-1538075311-500, type: 1

@wangyugui-e16
Copy link
Author

[ksmbd-worker/3113]: ERROR: LSARPC: unsupported INVOKE method 130, alloc_hint : 96
[ksmbd-worker/3113]: ERROR: LSARPC: unsupported INVOKE method 130, alloc_hint : 96
[ksmbd-worker/3113]: ERROR: LSARPC: unsupported INVOKE method 130, alloc_hint : 96

@namjaejeon
Copy link
Owner

@wangyugui-e16 Okay, how can I reproduce it ? And Is there any issue when these error message are coming ?

@wangyugui-e16
Copy link
Author

reproduce steps:

  1. linux server
    /usr/sbin/ksmbd.mountd -v -n
  2. windows client
    select a file of remote server from windows explorer,
    then right click, 'properties', then 'security' tab.

then error ' ERROR: LSARPC: unsupported INVOKE method 130, alloc_hint : 96' happen on linux server.

@namjaejeon
Copy link
Owner

Thanks:) I will try.

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

No branches or pull requests

2 participants