Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-28-2010, 01:33 AM
Junior Member
 
Posts: 5
Default Native & Active Directory password

hi,
I use Zimbra Release 5.0.5 and Authentication with external AD ,but when I change my password in AD my user can log in with old and new password.
I don't know where is my mistake!!
Reply With Quote
  #2 (permalink)  
Old 02-28-2010, 02:00 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Quote:
Originally Posted by qsdk View Post
hi,
I use Zimbra Release 5.0.5 and Authentication with external AD ,but when I change my password in AD my user can log in with old and new password.
I don't know where is my mistake!!
There is currently no method of synchronising the passwords in an external ldap & Zimbra. You may want to vote on this bug: Bug 6353 – Unable to change password when using External LDAP authentication and use the script in comment #19 to sync the passwords.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 03-02-2010, 12:08 AM
Junior Member
 
Posts: 5
Default change in AD

Dear Phoenix
My Users change their password on Domain Controller ( MS Active Directory) and then they can login by new password and old password too !!!
I want to know how can i sync my local ldap and external AD? or disable my local ldap authenticate

Last edited by qsdk; 03-02-2010 at 04:09 AM..
Reply With Quote
  #4 (permalink)  
Old 03-02-2010, 04:53 AM
Moderator
 
Posts: 7,928
Default

Code:
su - zimbra
zmprov md domain.com zimbraAuthFallbackToLocal FALSE
__________________
Reply With Quote
  #5 (permalink)  
Old 03-02-2010, 05:26 AM
Junior Member
 
Posts: 5
Default same problem

it my problem:
Is there a way to disable internal authentication for non-admin user?
Reply With Quote
  #6 (permalink)  
Old 03-07-2010, 01:11 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Quote:
Originally Posted by qsdk View Post
I want to know how can i sync my local ldap and external AD?
I've already given you the answer to that, there's a script in the bug report that will do it. Have you actually tried it?
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 03-08-2010, 11:11 PM
Junior Member
 
Posts: 5
Default

yes ,
I do this job but doesnt work.
I describe my problem : I have a Shell script that add AD user to my ZImbra by ldapsearch
Quote:
#!/bin/bash
# zsync_ad.sh is a script thant syncs AD users and Zimbra users
# It is unidirectional, just replicates changes from AD to ZCS
# Developed on by Eduardo Gonzalez <egrueda at gmail dot com>
# Testing version 0.6 - Use at your own risk

LDAPSEARCH=ldapsearch
ZMPROV=/opt/zimbra/bin/zmprov
DOMAIN_NAME="test.com"
TIMESTAMP=`date +%N`
TMP_DIR=/tmp
ADS_TMP=$TMP_DIR/users_ads_$TIMESTAMP.lst
ZCS_TMP=$TMP_DIR/users_zcs_$TIMESTAMP.lst
DIF_TMP=$TMP_DIR/users_dif_$TIMESTAMP.lst

# Server values
LDAP_SERVER="ldap://192.168.0.143"
BASEDN="dc=test,dc=com"
BINDDN="CN=zimbra,DC=test,DC=com"
BINDPW="zimbra"
FILTER="(&(sAMAccountName=*)(objectClass=user)(giv enName=*))"
FIELDS="mail"

# Extract users from ADS
echo -n "Quering ADS... "
$LDAPSEARCH -x -H $LDAP_SERVER -b $BASEDN -D "$BINDDN" -w $BINDPW "$FILTER" $FIELDS | \
grep "@$DOMAIN_NAME" | \
awk '{print $2}' | \
sort > $ADS_TMP
echo "Found `cat $ADS_TMP | wc -l` users ($ADS_TMP)"

# Extract users from ZCS
echo -n "Quering ZCS... "
$ZMPROV gaa $DOMAIN_NAME > $ZCS_TMP
echo "Found `cat $ZCS_TMP | wc -l` users ($ZCS_TMP)"

# Generate diff
echo "Generating diff file ($DIF_TMP)"
diff -u $ZCS_TMP $ADS_TMP | grep "$DOMAIN_NAME" > $DIF_TMP

# Clean up users list
rm -f $ADS_TMP $ZCS_TMP

# Import new users
echo -n "New users: "
cat $DIF_TMP | grep ^+ | wc -l
for i in $(cat $DIF_TMP | grep ^+ | sed s/^+//g);
do
echo -n " - Adding $i ";
$ZMPROV createAccount $i passwd > /dev/null;
RES=$?
if [ "$RES" == "0" ]; then echo "[Ok]"; else echo "[Err]"; fi
done

# Delete old users
echo -n "Old users: "
cat $DIF_TMP | grep ^- | wc -l
for i in $(cat $DIF_TMP | grep ^- | sed s/^-//g);
do
echo -n " - Deleting $i ";
$ZMPROV deleteAccount $i > /dev/null;
RES=$?
if [ "$RES" == "0" ]; then echo "[Ok]"; else echo "[Err]"; fi
done


# Clean up diff list
rm -f $DIF_TMP
and its OK,then i cat login to my new user by AD password,then I change my Password from AD.and my user can login by old and new password,then I change my password again and now my user can login with second and third password!!!!!
and so on
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.