I believe this is the script that I've been using for my Zimbra system. It's worked perfectly in the past, but we have recently moved across to a new domain and so I have been trying to update the script so that it syncronises with the new AD server.
However, after changing all of the attributes, when I now try to run the script it returns nothing - no errors or anything, it just starts a new line.
I'm very confused - it's as if it's connected to the server (if i change the server or usernames it returns errors as it cannot connect) but is just not finding any accounts?! We've moved to a server 2008 domain if this helps.
Any help would be much appreciated! Below is a copy of the attributes I have changed..
# Variables can be changed here:
banned = 'CN=Restricted Users,OU=Logon Groups,OU=Security Groups,OU=Establishment,DC=HPHS,DC=INTERNAL'
# an OU for banned users
scope = 'OU=Establishment,DC=HPHS,DC=INTERNAL'
#the search scope
domain = "HPHS.internal" # "example.com"
ldapserver="hps-dc-01"
#ldap server
port="389"
#ldap port (389 default)
emaildomain="xxx.leics.sch.uk"
#the email domain
ldapbinddomain="HPHS"
#the domain of the ldap bind account
ldapbind="xxx"
#the account name of the account to bind to ldap
ldappassword="xxx"
#the ldap password
pathtozmprov="/opt/zimbra/bin/zmprov"