tanx for your helps.
i get this file and change the parameters must be changed like:
# Server values
LDAP_SERVER="ldap://Ip address of My AD"
BASEDN="dc=rm,dc=bf"
BINDDN="CN=admin
username@rm.bf,DC=rm,DC=bf"
BINDPW="Admin Password"
FILTER="(&(sAMAccountName=*)(objectClass=user)(giv enName=*))"
FIELDS="mail"
# ( My domain name is RM.BF )
and change mode of this file +x to be executable
and copy it to /root and run script with root user
after run script this message be shown:
[root@mail ~]# source zsync_ad.sh
Quering ADS... ldap_bind: Invalid credentials (49)
additional info: 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece
Found 0 users (/tmp/users_ads_114661000.lst)
Quering ZCS... ERROR: service.INVALID_REQUEST (invalid request: can only be used with "zmprov -l/--ldap")
Found 0 users (/tmp/users_zcs_114661000.lst)
Generating diff file (/tmp/users_dif_114661000.lst)
New users: 0
Old users: 0
[root@mail ~]#
whats your idea about this problem?