Re: Converting binary sid's to a hex string

2006-06-09 Thread LittlePython
Thx Roger, I have been off line for a few days. I am sorry not to reply earlier. I will try this, but I am not sure what "buffer" does ( I am a newbie to python). "Roger Upole" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You can use the binascii module to convert the raw > bytes

Re: Converting binary sid's to a hex string

2006-06-07 Thread Roger Upole
You can use the binascii module to convert the raw bytes of the sid to hex. binascii.b2a_hex(buffer(MySid)) Roger "LittlePython" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am trying to create a hexstring of a NT4 user account sid which I can in > turn use to query an e

Converting binary sid's to a hex string

2006-06-07 Thread LittlePython
I am trying to create a hexstring of a NT4 user account sid which I can in turn use to query an exchange 55 database. I believe I need to convert a binary sid to a hex string. ADsSID com object will do this for me however it is a little slow. Can anybody point me in the right direction to converti