I use net rpc vampire to migrate a NT domain to a Samba domain (with LDAP backend). The user TSE data stored in the SAM are not migrated. There is no sambaMangedDial attribute in user entries after the net rpc vampire.
This was fixed in subversion some days ago (See http://build.samba.org/build.pl?function=diff;tree=samba_3_0;date=1102671903;author=gd;revision=4127 for the patch). Could you give that a try and reopen the bug if you find any problems with it? Thanks for your report.
It doesn't work Normaly, in LDAP the attribute is stored in base64 format. With the new net rpc vampire, it's stored in raw format. You just have to convert the value into base64 format.
Created attachment 861 [details] base64-encode munged dial
I've updated an updated version of the patch. Please give us feedback again. Thanks for testing.
It's now ok for the base64 format. But there is a problem : the attribute is truncated. With your code I have (with a lot of special car) : CtxCfgPresent551e0bbCtxCfgFlags100e0001CtxCallback0000000CtxShadow01000000 CtxMaxConnectionTime00000000CtxMaxDisconnectionTime0000000CtxMaxIdleTime 00000000CtxKeyboardLayout0 And it must be (with a lot of special car) : CtxCfgPresent551e0bbCtxCfgFlags100e0001CtxCallback0000000CtxShadow01000000 CtxMaxConnectionTime00000000CtxMaxDisconnectionTime0000000CtxMaxIdleTime 00000000CtxKeyboardLayout00000000*CtxMinEncryptionLevel00 CtxWorkDirectory 00 CtxNWLogonServer00CtxWFHomeDir00"CtxWFHomeDirDrive00 CtxWFProfilePath 5c5c746f746f5c7461746100"CtxInitialProgram00"CtxCallbackNumber00
With the first patch, it's not in base64 but there is the whole string in the attribute. With the second patch, it's in base64 but the attribute is truncated. The problem comes with the base64 conversion.
It's : mung.length = 2*delta->uni_parameters.uni_str_len; and not mung.length = delta->uni_parameters.uni_str_len; delta->uni_parameters.buffer is uint16 and you cast it into uint8 (I'm not sure it's the real reason, but it works now :)
Fixed in Subversion (this time hopefully correct :). Please reopen if you see any further problems.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.