Connect to a LDAP / SMB share

I currently am trying to connect my users who are logging to a ldap share and if they have rights then I want there user to open the file. How would you suggest that I set this up since I am using LDAP to connect to my next cloud server but I want to make sure the user is using the the file via that AD user not the user who connected the SMB / Share. How would you go about doing this?

You can’t. When a user connects to a SMB share, all file access is in the context of that user.