Displaying 4 results from an estimated 4 matches for "littlehex2int".
2017 Nov 04
2
ntfs user mappings?
. DOMAIN_ADMIN_PASSWD.sh
echo ${PASSWD} | kinit ${ADMIN}@${DOMAIN}
echo -n > /etc/ntfs-3g.usermap
for DOMAIN_USER in $(wbinfo -u);do
RPCLOOKUPID=$(rpcclient -P -c "lookupnames ${DOMAIN_USER}" ${DOMAIN})
if [ "${RPCLOOKUPID:0:7}" != "ERROR: " ] && [ "${RPCLOOKUPID:0:7}" !=
"Failed " ];then
SID=$(echo ${RPCLOOKUPID}|awk '{print
2017 Nov 05
3
ntfs user mappings?
On Sat, 4 Nov 2017 18:42:36 -0600
Jeff Sadowski <jeff.sadowski at gmail.com> wrote:
> I decided to continue trying the ldap route as well
>
> littlehex2int()
> {
> hex=$1
> hex_chunk=$(echo ${hex}|cut -c$2-$3)
> little=$(echo ${hex_chunk}|awk '{print
> substr($0,7,2)substr($0,5,2)substr($0,3,2)substr($0,1,2)}')
> echo "ibase=16; ${little}" | bc
> }
>
> base64_to_sid()
> {
> OBJECTSID="$1&quo...
2017 Nov 05
0
ntfs user mappings?
I decided to continue trying the ldap route as well
littlehex2int()
{
hex=$1
hex_chunk=$(echo ${hex}|cut -c$2-$3)
little=$(echo ${hex_chunk}|awk '{print
substr($0,7,2)substr($0,5,2)substr($0,3,2)substr($0,1,2)}')
echo "ibase=16; ${little}" | bc
}
base64_to_sid()
{
OBJECTSID="$1"
hex=$(echo ${OBJECTSID}|base64 -d|od -A n -x -w28 --...
2017 Nov 05
0
ntfs user mappings?
...ex}
base64=$(hex2base64 ${ohex})
On Sun, Nov 5, 2017 at 12:31 PM, Rowland Penny <rpenny at samba.org> wrote:
> On Sat, 4 Nov 2017 18:42:36 -0600
> Jeff Sadowski <jeff.sadowski at gmail.com> wrote:
>
>> I decided to continue trying the ldap route as well
>>
>> littlehex2int()
>> {
>> hex=$1
>> hex_chunk=$(echo ${hex}|cut -c$2-$3)
>> little=$(echo ${hex_chunk}|awk '{print
>> substr($0,7,2)substr($0,5,2)substr($0,3,2)substr($0,1,2)}')
>> echo "ibase=16; ${little}" | bc
>> }
>>
>> base64_to_sid()...