Update code to work with samba4
Merge pull request #5 from luke-dixon/samba-4

Update code to work with samba4