Author: gd Date: 2004-12-10 09:45:03 +0000 (Fri, 10 Dec 2004) New Revision: 4127
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4127 Log: vampire munged_dial. Guenther Modified: branches/SAMBA_3_0/source/utils/net_rpc_samsync.c trunk/source/utils/net_rpc_samsync.c Changeset: Modified: branches/SAMBA_3_0/source/utils/net_rpc_samsync.c =================================================================== --- branches/SAMBA_3_0/source/utils/net_rpc_samsync.c 2004-12-10 05:49:48 UTC (rev 4126) +++ branches/SAMBA_3_0/source/utils/net_rpc_samsync.c 2004-12-10 09:45:03 UTC (rev 4127) @@ -322,6 +322,14 @@ pdb_set_profile_path(account, new_string, PDB_CHANGED); } + if (delta->hdr_parameters.buffer) { + old_string = pdb_get_munged_dial(account); + new_string = unistr2_static(&delta->uni_parameters); + + if (STRING_CHANGED) + pdb_set_munged_dial(account, new_string, PDB_CHANGED); + } + /* User and group sid */ if (pdb_get_user_rid(account) != delta->user_rid) pdb_set_user_sid_from_rid(account, delta->user_rid, PDB_CHANGED); Modified: trunk/source/utils/net_rpc_samsync.c =================================================================== --- trunk/source/utils/net_rpc_samsync.c 2004-12-10 05:49:48 UTC (rev 4126) +++ trunk/source/utils/net_rpc_samsync.c 2004-12-10 09:45:03 UTC (rev 4127) @@ -330,6 +330,14 @@ pdb_set_profile_path(account, new_string, PDB_CHANGED); } + if (delta->hdr_parameters.buffer) { + old_string = pdb_get_munged_dial(account); + new_string = unistr2_static(&delta->uni_parameters); + + if (STRING_CHANGED) + pdb_set_munged_dial(account, new_string, PDB_CHANGED); + } + /* User and group sid */ if (pdb_get_user_rid(account) != delta->user_rid) pdb_set_user_sid_from_rid(account, delta->user_rid, PDB_CHANGED);