2013-07-10 16:29 keltezéssel, Rowland Penny írta:
Hi, I am having problems with your install script, I have got to the Openchange part and I am having problems.

The code is:

PROX=`ldapsearch -D $BDN -w $APW -b $OU "sAMAccountName=Administrator" | egrep ^proxyAddresses | egrep -v postmaster | sed "s/SMTP\(.*\)/smtp\1\nproxyAddresses: SMTP:$EML/" | sed "s/\(^[^:]\+\)/-\nadd: \1\n\1/"`
      echo "dn: $BDN
changetype: modify
delete: proxyAddresses
$PROX" | ldapmodify -D $BDN -w $APW

Which before you run it, you have:

proxyAddresses: =EX:/o=First Organization/ou=First Administrative Group/cn=Rec
 ipients/cn=Administrator
proxyAddresses: smtp:[email protected]
proxyAddresses: X400:c=US;a= ;p=First Organizati;o=Exchange;s=Administrator
proxyAddresses: SMTP:[email protected]

After running it, you have:

proxyAddresses: =EX:/o=First Organization/ou=First Administrative Group/cn=Rec proxyAddresses: X400:c=US;a= ;p=First Organizati;o=Exchange;s=Administrator
proxyAddresses: smtp:[email protected]
proxyAddresses: SMTP:[email protected]

The cropped line is bug! Thanks I'll fix it soon.


Notice that the first proxyAddresses line has been truncated, the second has become '[email protected]' instead of '[email protected]'.

Could you please explain just what you are trying to do here and why? My reading is that you wanted to delete the proxyAddresses lines apart from the postmaster one, but the last part of the 'PROX' line has 'add' in it. Also the prox line refers to $EML, but this is the only occurence of EML in the entire script, should EML="Administrator@$DOM" , if not what does it equal?

AFAIK the Outlook uses to the proxyAddresses property with SMTP tag for outgoing emails as sender address. So, we need the modify it (use the mail property).

Your $MDOM and $MMDOM variables the same? $MMDOM must NOT be 'local' but 'com', 'org', etc. @example.local is invalid! So, your config is probably wrong.

In the 1. step the "Domain" is a LOCAL domain - like example.local, and the "Mail domain" is the external domain like example.com.

Anyway - At the fixing the previously (cut the line) bug, I'll try to review this line, and fix this too, if it's a really another bug.


Thanks

Rowland


On 10 July 2013 14:33, Garth Keesler <[email protected] <mailto:[email protected]>> wrote:

    Still getting the following after Samba install completes. This is
    probably my fault since I'm not entirely sure how to answer some
    of the questions during apt-get installs.

    Assume the following:

    VM name:    sogo1
    Domain: sogotest.com <http://sogotest.com>

    It would be a great help if you could reply with reasonable
    answers (ignoring passwd requests) for the products that get
    installed (like LDAP and KDC servers). No need to do them all;
    just the stranger ones.

    The following is still showing up:


    Wait to start Samba4 LDAP .. OK
    ldap_result: Can't contact LDAP server (-1)
    [!] User 'Administrator' not found
    ldap_result: Can't contact LDAP server (-1)
    ldap_result: Can't contact LDAP server (-1)
    ERROR: Failed to set expiry for user 'administrator': Unable to
    find user "(&(objectClass=user)(sAMAccountName=administrator))"
    ERROR(ldb): Failed to create group "SOGOTEST Users" - objectclass:
    Cannot add CN=SOGOTEST Users,CN=Users,DC=sogotest,DC=com, parent
    does not exist!
    Operations are OK [Yn]?

    Thanx much!


    On 07/10/2013 08:08 AM, Garth Keesler wrote:

    On 07/10/2013 07:55 AM, Szládovics Péter wrote:
    2013-07-10 14:23 keltezéssel, Garth Keesler írta:
    First Q: There are a list of DNS entries that I am supposed to
    add that refer to my routable IP address assigned by my ISP (I
    have a 29 subnet) and I'm not sure what to do with these since
    I don't intend to publish this on the Internet. Can I just
    ignore them?

    If you plan to use remote outlook users, you maybe need
    autodiscover A record (and SRV records too, if you wont use
    standard HTTPS ports)
    I'll remember this for later testing.

    The script seems to run much better until the below pops up
    during Samba installation.

    Wait to start Samba4 LDAP .. OK
    ldap_result: Can't contact LDAP server (-1)
    [!] User 'Administrator' not found
    ldap_result: Can't contact LDAP server (-1)
    ldap_result: Can't contact LDAP server (-1)
    ERROR: Failed to set expiry for user 'administrator': Unable to
    find user "(&(objectClass=user)(sAMAccountName=administrator))"
    ERROR(ldb): Failed to create group "SOGOTEST Users" -
    objectclass: Cannot add CN=SOGOTEST
    Users,CN=Users,DC=sogotest,DC=com, parent does not exist!
    Operations are OK [Yn]?

    Any ideas? Do you need more info? Should I answer Y or n?

    Yes. I think your administrator password has some illegal
    characters (eg space or other /\$"'-, etc.).
    Please use only characters and numbers - because the script is
    require it.
    Will do. I used "-" (hyphen) in all of the passwords and will
    redo using only alphanumerics.

    More soon...




--
[email protected]
https://inverse.ca/sogo/lists

Reply via email to