dCache / nfs4j

Pure Java NFSv3 and NFSv4.2 implementation
Other
234 stars 74 forks source link

Whether it support user management? #94

Open yangjinlogic opened 3 years ago

kofemann commented 3 years ago

Hi,

Can you please elaborate what you need. The nfs4j has an interface for user identity management but implantation are up to servers which use it. Our production server uses LDAP.

yangjinlogic commented 3 years ago

@kofemann ,yes,I need to upload file to the nfs,and used by various people at the same time,I want the library can support it

kofemann commented 3 years ago

Well, as long as your backed file system supports multiple UIDs, it's simple:

@Override
public Inode create(Inode parent, Stat.Type type, String path, Subject
subject, int mode)

throws IOException {
     int uid = (int) UnixSubjects.getUid(subject);
     int gid = (int) UnixSubjects.getPrimaryGid(subject);

    ....

-kofemann /* caffeinated mutations of the core personality /

On Fri, Oct 23, 2020 at 5:04 PM yangjinlogic notifications@github.com wrote:

@kofemann https://github.com/kofemann ,yes,I need to upload file to the nfs,and used by various people at the same time,I want the library can support it

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dCache/nfs4j/issues/94#issuecomment-715398184, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEMTXPPOCVV2MNEY2H7CGTSMGLPFANCNFSM4S4LIRCQ .

yangjinlogic commented 3 years ago

@kofemann thanks for your response,why I cant clone this project?

kofemann commented 3 years ago

Huh... What error do you get?

On Fri, Oct 23, 2020, 18:21 yangjinlogic notifications@github.com wrote:

@kofemann https://github.com/kofemann thanks for your response,why I cant clone this project?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dCache/nfs4j/issues/94#issuecomment-715441289, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEMTXOHN4EXKD23XVC7B2LSMGUO5ANCNFSM4S4LIRCQ .