Displaying 11 results from an estimated 11 matches for "rpclookupid".
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 $2}')
echo ${DOMAIN_USER}::${SID} >> /e...
2017 Nov 05
3
ntfs user mappings?
..." }
>
> On Sat, Nov 4, 2017 at 4:42 PM, Jeff Sadowski
> <jeff.sadowski at gmail.com> wrote:
> > . 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 $2}')
> >...
2017 Nov 05
0
ntfs user mappings?
...-${issuer1}-${issuer2}-${issuer3}-${uid}"
}
On Sat, Nov 4, 2017 at 4:42 PM, Jeff Sadowski <jeff.sadowski at gmail.com> wrote:
> . 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 $2}')
> echo ${DOMAIN_USER}...
2017 Nov 05
0
ntfs user mappings?
...at, Nov 4, 2017 at 4:42 PM, Jeff Sadowski
>> <jeff.sadowski at gmail.com> wrote:
>> > . 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 $2}')...
2017 Nov 03
2
ntfs user mappings?
That looks easier
I was working on ldap to convert but I'll try ldb-tools
I was off on a bash mission here is what I had so far it isn't correct
so I'll keep working on it
#!/bin/bash
if [ "$(echo $1|wc -c)" = "41" ];then
hex=$(echo $1|base64 -d| od -x -w28 --endian=big|head -n1|sed
's/^0000000 //'|sed 's/ //g')
echo ${hex}
hex_chunk=$(echo
2017 Feb 03
2
How to get password expiration?
...t; > dn: CN=AppCategories,CN=Default Domain
> > Policy,CN=System,DC=ad,DC=mydomain,DC=tld
> > dn: CN=Meetings,CN=System,DC=ad,DC=mydomain,DC=tld
> > dn: CN=Policies,CN=System,DC=ad,DC=mydomain,DC=tld
> > ...
>
> AS I said, you can use rpcclient to do this:
>
> RPCLOOKUPID=$(rpcclient -P -c "lookupnames $USER" dc1)
> USERDCID=$(echo "$RPCLOOKUPID" | grep -e '[0-9]\{4,9\} ' -o)
> QUERYUSER=$(rpcclient -P -c "queryuser $USERDCID" dc1)
> EXPDATE=$(echo "$QUERYUSER" | grep 'Password must change Time' | cut...
2017 Feb 03
7
How to get password expiration?
This seems to work for maxPwdAge
ldapsearch -LLL -Q -s base -h ad.mydomain.tld -b dc=ad,dc=mydomain,dc=tld
maxPwdAge
now I just need to query a users pwdLastSetq
I tried the commands above but am not getting anything. I tried looking at
the ungrepped output but I don't see how to link the pwdLastSet with any
user. I get a long list.
I think I'm looking for dn: and a matching pwdLastSet?
2017 Feb 03
0
How to get password expiration?
...olicy,CN=System,DC=ad,DC=mydomain,DC=tld
> dn: CN=AppCategories,CN=Default Domain
> Policy,CN=System,DC=ad,DC=mydomain,DC=tld
> dn: CN=Meetings,CN=System,DC=ad,DC=mydomain,DC=tld
> dn: CN=Policies,CN=System,DC=ad,DC=mydomain,DC=tld
> ...
AS I said, you can use rpcclient to do this:
RPCLOOKUPID=$(rpcclient -P -c "lookupnames $USER" dc1)
USERDCID=$(echo "$RPCLOOKUPID" | grep -e '[0-9]\{4,9\} ' -o)
QUERYUSER=$(rpcclient -P -c "queryuser $USERDCID" dc1)
EXPDATE=$(echo "$QUERYUSER" | grep 'Password must change Time' | cut -d
":"...
2017 Feb 03
1
How to get password expiration?
...t; > dn: CN=AppCategories,CN=Default Domain
> > Policy,CN=System,DC=ad,DC=mydomain,DC=tld
> > dn: CN=Meetings,CN=System,DC=ad,DC=mydomain,DC=tld
> > dn: CN=Policies,CN=System,DC=ad,DC=mydomain,DC=tld
> > ...
>
> AS I said, you can use rpcclient to do this:
>
> RPCLOOKUPID=$(rpcclient -P -c "lookupnames $USER" dc1)
> USERDCID=$(echo "$RPCLOOKUPID" | grep -e '[0-9]\{4,9\} ' -o)
> QUERYUSER=$(rpcclient -P -c "queryuser $USERDCID" dc1)
> EXPDATE=$(echo "$QUERYUSER" | grep 'Password must change Time' | cut...
2017 Feb 03
0
How to get password expiration?
...Default Domain
>> > Policy,CN=System,DC=ad,DC=mydomain,DC=tld
>> > dn: CN=Meetings,CN=System,DC=ad,DC=mydomain,DC=tld
>> > dn: CN=Policies,CN=System,DC=ad,DC=mydomain,DC=tld
>> > ...
>>
>> AS I said, you can use rpcclient to do this:
>>
>> RPCLOOKUPID=$(rpcclient -P -c "lookupnames $USER" dc1)
>> USERDCID=$(echo "$RPCLOOKUPID" | grep -e '[0-9]\{4,9\} ' -o)
>> QUERYUSER=$(rpcclient -P -c "queryuser $USERDCID" dc1)
>> EXPDATE=$(echo "$QUERYUSER" | grep 'Password must change Time...
2017 Feb 03
2
How to get password expiration?
...Policy,CN=System,DC=ad,DC=mydomain,DC=tld
>>> > dn: CN=Meetings,CN=System,DC=ad,DC=mydomain,DC=tld
>>> > dn: CN=Policies,CN=System,DC=ad,DC=mydomain,DC=tld
>>> > ...
>>>
>>> AS I said, you can use rpcclient to do this:
>>>
>>> RPCLOOKUPID=$(rpcclient -P -c "lookupnames $USER" dc1)
>>> USERDCID=$(echo "$RPCLOOKUPID" | grep -e '[0-9]\{4,9\} ' -o)
>>> QUERYUSER=$(rpcclient -P -c "queryuser $USERDCID" dc1)
>>> EXPDATE=$(echo "$QUERYUSER" | grep 'Password must...