Roman ZARAGOCI
2007-Feb-09 11:24 UTC
[Samba] sambaSamAccount and posixAccount cohabitation
Hi all, I'm new on this list and I'm french, so my english could be worst !;) My question is about sambaSamAccount and posixAccount objectClasses. I want the user "test" be mapped to user root (uid=0, gid=0) when logged into pam over ldap mechanism (such as ssh) And I want the same user "test" be mapped to user test (uid=1003, gid=513) when logged to Samba server. The user test looks like : userPassword={SHA}... sambaNTPassword=219AF2CFBB1146232E95BB289D4B4907 sambaPrimaryGroupSID=S-1-5-21-3332956327-150401671-1105301019-513 ...* gidNumber=513 uidNumber=1003* uid=syvo objectClass=top objectClass=person objectClass=organizationalPerson objectClass=inetOrgPerson objectClass=posixAccount objectClass=sambaSamAccount cn=syvo Is it possible to map this user to root when it's logging to unix and map this same user to gid=513,uid=1003 when it's logging to samba ? Without making a second account... Maybe the solution is on the smb.conf file; maybe I can force this user to be mapped to gid=513,uid=1003 when it logs to Samba ? or, on the opposite, maybe I can force user gid=513,uid=1003 to be mapped to root (gid=0,uid=0) when it logs to unix mechanism ? I hope i'm on the right list for this question and I hope my english is sufficient to understand my query, Thanks in advance :)
Roman ZARAGOCI
2007-Feb-19 01:24 UTC
[Samba] sambaSamAccount and posixAccount cohabitation
Hi all, I'm new on this list and I'm french, so my english could be worst !;) My question is about sambaSamAccount and posixAccount objectClasses. I want the user "test" be mapped to user root (uid=0, gid=0) when logged into pam over ldap mechanism (such as ssh) And I want the same user "test" be mapped to user test (uid=1003, gid=513) when logged to Samba server. The user test looks like : userPassword={SHA}... sambaNTPassword=219AF2CFBB1146232E95BB289D4B4907 sambaPrimaryGroupSID=S-1-5-21-3332956327-150401671-1105301019-513 ...* gidNumber=513 uidNumber=1003* uid=syvo objectClass=top objectClass=person objectClass=organizationalPerson objectClass=inetOrgPerson objectClass=posixAccount objectClass=sambaSamAccount cn=syvo Is it possible to map this user to root when it's logging to unix and map this same user to gid=513,uid=1003 when it's logging to samba ? Without making a second account... Maybe the solution is on the smb.conf file; maybe I can force this user to be mapped to gid=513,uid=1003 when it logs to Samba ? or, on the opposite, maybe I can force user gid=513,uid=1003 to be mapped to root (gid=0,uid=0) when it logs to unix mechanism ? I hope i'm on the right list for this question and I hope my english is sufficient to understand my query, Thanks in advance :)
Seemingly Similar Threads
- Using the same LDAP entry for posixAccount and sambaSamAccount with smbldap
- sambaSamAccount versus SambaSAMAccount
- smbldap-useradd will not add sambaSamAccount objectClass
- Machine account with object class sambaSAMAccount required?
- object class 'sambaSamAccount' requires attribute 'sambaSID'