LDAP : SambaMungedDial Syntax

Yohann Fourteau yohann.fourteau at aitb.org
Wed Dec 8 10:48:06 GMT 2004


Selon Yohann Fourteau <yohann.fourteau at aitb.org>:
> When I decode that, i find (on one line, it begins with lots of space
> characters) :
> ----------------------------------------
>                                                
>
CtxCfgPresent551e0bbCtxCfgFlags100e0001CtxCallback0000000CtxShadow01000000CtxMaxConnectionTime00000000CtxMaxDisconnectionTime0000000CtxMaxIdleTime00000000CtxKeyboardLayout00000000*CtxMinEncryptionLevel00
> CtxWorkDirectory00
>
CtxNWLogonServer00$CtxWFHomeDir5c5c73617475726e655c702e6269646f6e00"CtxWFHomeDirDrive503a00
>
:CtxWFProfilePath5c5c73617475726e655c70726f66696c657473655c702e6269646f6e00"CtxInitialProgram00"CtxCallbackNumber00
> -----------------------------------------

In fact the string is :
-----------------------------------------------------
\ \000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\
\000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\
\000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\
\000\ \000\ \000\ \000\ \000\ \000\ \000\ \000\
\000\P\000\020\000\032\000\b\000\001\000\C\000\t\000\x\000\C\000\f\000\g\000\P\000\r\000\e\000\s\000\e\000\n\000\t\000\5\5\1\e\0\b\b\0\030\000\b\000\001\000\C\000\t\000\x\000\C\000\f\000\g\000\F\000\l\000\a\000\g\000\s\000\1\000\0\0\e\0\0\0\1\0\026\000\b\000\001\000\C\000\t\000\x\000\C\000\a\000\l\000\l\000\b\000\a\000\c\000\k\000\0\0\0\0\0\0\0\0\022\000\b\000\001\000\C\000\t\000\x\000\S\000\h\000\a\000\d\000\o\000\w\000\0\1\0\0\0\0\0\0\(\000\b\000\001\000\C\000\t\000\x\000\M\000\a\000\x\000\C\000\o\000\n\000\n\000\e\000\c\000\t\000\i\000\o\000\n\000\T\000\i\000\m\000\e\000\0\0\0\0\0\0\0\0\.\000\b\000\001\000\C\000\t\000\x\000\M\000\a\000\x\000\D\000\i\000\s\000\c\000\o\000\n\000\n\000\e\000\c\000\t\000\i\000\o\000\n\000\T\000\i\000\m\000\e\000\0\0\0\0\0\0\0\0\034\000\b\000\001\000\C\000\t\000\x\000\M\000\a\000\x\000\I\000\d\000\l\000\e\000\T\000\i\000\m\000\e\000\0\0\0\0\0\0\0\0\"\000\b\000\001\000\C\000\t\000\x\000\K\000\e\000\y\000\b\000\o\000\a\000\r\000\d\000\L\000\a\00!
 0\y\000\o\000\u\000\t\000\0\0\0\0\0\0\0\0\*\000\002\000\001\000\C\000\t\000\x\000\M\000\i\000\n\000\E\000\n\000\c\000\r\000\y\000\p\000\t\000\i\000\o\000\n\000\L\000\e\000\v\000\e\000\l\000\0\0\
\000\002\000\001\000\C\000\t\000\x\000\W\000\o\000\r\000\k\000\D\000\i\000\r\000\e\000\c\000\t\000\o\000\r\000\y\000\0\0\
\000\002\000\001\000\C\000\t\000\x\000\N\000\W\000\L\000\o\000\g\000\o\000\n\000\S\000\e\000\r\000\v\000\e\000\r\000\0\0\030\000\$\000\001\000\C\000\t\000\x\000\W\000\F\000\H\000\o\000\m\000\e\000\D\000\i\000\r\000\5\c\5\c\7\3\6\1\7\4\7\5\7\2\6\e\6\5\5\c\7\0\2\e\6\2\6\9\6\4\6\f\6\e\0\0\"\000\006\000\001\000\C\000\t\000\x\000\W\000\F\000\H\000\o\000\m\000\e\000\D\000\i\000\r\000\D\000\r\000\i\000\v\000\e\000\5\0\3\a\0\0\
\000\:\000\001\000\C\000\t\000\x\000\W\000\F\000\P\000\r\000\o\000\f\000\i\000\l\000\e\000\P\000\a\000\t\000\h\000\5\c\5\c\7\3\6\1\7\4\7\5\7\2\6\e\6\5\5\c\7\0\7\2\6\f\6\6\6\9\6\c\6\5\7\4\7\3\6\5\5\c\7\0\2\e\6\2\6\9\6\4\6\f\6\e\0\0\"\000\002\000\001\000\C\000\t\000\x\000\I\000\n\000\i\000\t\000\i\000\a\000\l\000\P\000\r\000\o\000\g\000\r\000\a\000\m\000\0\0\"\000\002\000\001\000\C\000\t\000\x\000\C\000\a\000\l\000\l\000\b\000\a\000\c\000\k\000\N\000\u\000\m\000\b\000\e\000\r\000\0\0
----------------------------
                            
If you remove \000 and replace \xxx by @ you have :
-----------------------------                   
P@@b at CtxCfgPresent551e0bb0@b at CtxCfgFlags100e00010@b at CtxCallback00000000@b at CtxShadow01000000(b at CtxMaxConnectionTime00000000.b@CtxMaxDisconnectionTime00000000 at b@CtxMaxIdleTime00000000"b at CtxKeyboardLayout00000000*@@CtxMinEncryptionLevel00
@@CtxWorkDirectory00
@@CtxNWLogonServer00@$@CtxWFHomeDir5c5c73617475726e655c702e6269646f6e00"@@CtxWFHomeDirDrive503a00
:@CtxWFProfilePath5c5c73617475726e655c70726f66696c657473655c702e6269646f6e00"@@CtxInitialProgram00"@@CtxCallbackNumber00
------------------------------

When the character is not in a field value, it is followed by a NUL caracter.

Ex : CtxWFProfilePath becomes C\0t\0x\0W\0F\0P\0r\0o\0f\0i\0l\0e\0P\0a\0t\0h\0
but its value stays 5c5c73617475726e655c70726f66696c657473655c702e6269646f6e00

Each field are separate by 6 caracters : X\0Y\0Z\0. 




-- 
Yohann F.


More information about the samba-technical mailing list