D-arb 1; Active Directory 0

brad's picture

I work in a department which runs it's network using a windows domain controller (active directory). Now, as it stands, Samba can operate as a drop in ADS for a lot of cases, so it's ADS is pretty good. The major limitation to Samba's support is lack of DFS (Dynamic file share), the Microsoft equvalent of network symlinks. But that is not what this article is about.

Every few weeks my domain password expires. If you remember to change your password before it expires, then no problem, you can use smb, or net. Unfortunately I usually forget (since I use samba so infrequently), and then it means a trip to my nearest domain computer, to change my password, and back. I decided to take action. I dropped a sh script in /etc/cron.daily/ called 'rucsict'. The magic is simple:

#!/bin/sh
/usr/bin/net -U Username%Password -S the.domain.controller RAP PASSWORD Username Password Password

So every day it refreshes my password. It could easily generate a new password every two weeks or something, but I am more worried about saving myself a trip every few weeks to change my password. So, I win.

Trackback URL for this post:

http://whijo.net/trackback/399

Post new comment

The content of this field is kept private and will not be shown publicly.
Captcha
This question is used to make sure you are a human visitor and to prevent spam submissions.
Syndicate content

Recent comments

About this website

Whijo.net is the online internets of Bradley Whittington, Amanda Joseph, and our son Finley James Whittington. "Whijo" is 29% Whittington, 33% Joseph, and 37% Internet. Quite Web 2.0 of us.