summaryrefslogtreecommitdiff
path: root/usr/src/lib/libidmap/common/idmap_api.c
diff options
context:
space:
mode:
authorKeyur Desai <Keyur.Desai@Sun.COM>2009-09-11 17:22:48 -0600
committerKeyur Desai <Keyur.Desai@Sun.COM>2009-09-11 17:22:48 -0600
commite3f2c991a8548408db0a2787bd8b43d5124821d3 (patch)
tree953b45b77a478c8ee85319e5e96ddb77f98dbd13 /usr/src/lib/libidmap/common/idmap_api.c
parentc4ddbbe1ca066fd6662bdb8c477ad412b97c5590 (diff)
downloadillumos-gate-e3f2c991a8548408db0a2787bd8b43d5124821d3.tar.gz
6861127 Want an RPC function to get the session key
6865745 Consolidate request handlers for query file information requests 6864354 mdb dumps core in an smb dcmd 6841851 [Sparc] Can not make a mapped drive from Windows to any share on CIFS Server 6840783 Support IDMU userid and groupid data for joined domain 6845717 idmapd's scf_value2string unnecessarily complex, incorrect PSARC/2009/398 IDMU Support for idmap 6867994 Rework handling of set and query of file allocation size 6863385 MMC - Unable to use Event Viewer in Windows 2008 - "RPC server is unavailable" 6863390 MMC - Issues with the Services list in Windows 2008 6868501 Unable to map a CIFS share after bfu to cifs nightly build 6870248 Consolidate request handlers for set file information requests 6864074 idmap cannot map computer accounts 6874207 Incorrect access permission check when setting file size 6875658 Need locking around process-wide changes 6877595 eliminate smbd_fs_query() PSARC/2009/375 ABE share property for NFS and SMB 6802736 SMB share support for Access Based Enumeration 6875228 Issue with file copy from a CIFS share to the same share using Windows. --HG-- rename : usr/src/uts/common/fs/smbsrv/smb_trans2_query_file_info.c => usr/src/uts/common/fs/smbsrv/smb_query_fileinfo.c rename : usr/src/uts/common/fs/smbsrv/smb_trans2_set_information.c => usr/src/uts/common/fs/smbsrv/smb_set_fileinfo.c
Diffstat (limited to 'usr/src/lib/libidmap/common/idmap_api.c')
-rw-r--r--usr/src/lib/libidmap/common/idmap_api.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/usr/src/lib/libidmap/common/idmap_api.c b/usr/src/lib/libidmap/common/idmap_api.c
index f19e0f1dda..a6d773e195 100644
--- a/usr/src/lib/libidmap/common/idmap_api.c
+++ b/usr/src/lib/libidmap/common/idmap_api.c
@@ -2257,7 +2257,6 @@ idmap_how_ds_based_cpy(idmap_how_ds_based *to, idmap_how_ds_based *from)
return (retval);
}
-
idmap_stat
idmap_info_cpy(idmap_info *to, idmap_info *from)
{
@@ -2294,6 +2293,11 @@ idmap_info_cpy(idmap_info *to, idmap_info *from)
case IDMAP_MAP_TYPE_KNOWN_SID:
break;
+
+ case IDMAP_MAP_TYPE_IDMU:
+ retval = idmap_how_ds_based_cpy(&to->how.idmap_how_u.idmu,
+ &from->how.idmap_how_u.idmu);
+ break;
}
return (retval);
}
@@ -2366,6 +2370,15 @@ idmap_info_free(idmap_info *info)
case IDMAP_MAP_TYPE_LOCAL_SID:
break;
+
+ case IDMAP_MAP_TYPE_IDMU:
+ free(how->idmap_how_u.idmu.dn);
+ how->idmap_how_u.idmu.dn = NULL;
+ free(how->idmap_how_u.idmu.attr);
+ how->idmap_how_u.idmu.attr = NULL;
+ free(how->idmap_how_u.idmu.value);
+ how->idmap_how_u.idmu.value = NULL;
+ break;
}
how->map_type = IDMAP_MAP_TYPE_UNKNOWN;
info->src = IDMAP_MAP_SRC_UNKNOWN;