Use a cifs upcall to map a SID to either an uid or a gid using winbind.

There is a corrosponding patch for the cifs.upcall binary in cifs-utils rpm
that is being posted also.

A new type of key, cifs_idmap_key_type, is used.

For now, cifs.upcall is only used to map a SID to an id (uid or gid) but
it would be used to obtain an SID (string) for an id.

This patch does not address client side permission checking and 
id assignments if and when there is an error in SID mapping.
Default id assigned is that of 0 (root/superuser) for now.

An entry such as this

create  cifs.cifs_idmap   *       *               /usr/sbin/cifs.upcall %k

is needed in the file /etc/request-key.conf.


Signed-off-by: Shirish Pargaonkar <[email protected]>

--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to