Univention Bugzilla – Attachment 10752 Details for
Bug 53466
adtakeover: AttributeError: 'int' object has no attribute 'find'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
53466.patch (text/plain), 1.66 KB, created by
Florian Best
on 2021-06-18 23:10:26 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2021-06-18 23:10:26 CEST
Size:
1.66 KB
patch
obsolete
>diff --git management/univention-management-console-module-adtakeover/umc/python/adtakeover/takeover.py management/univention-management-console-module-adtakeover/umc/python/adtakeover/takeover.py >index 59d2ef9ebe..5baf3926af 100644 >--- management/univention-management-console-module-adtakeover/umc/python/adtakeover/takeover.py >+++ management/univention-management-console-module-adtakeover/umc/python/adtakeover/takeover.py >@@ -1334,14 +1334,11 @@ class AD_Takeover(object): > for attr in ("mail", "proxyAddresses"): > if attr in msg: > for address in msg[attr]: >- address = address.decode('UTF-8').find("@") >- char_idx = address.find("@") >- if char_idx != -1: >- domainpart = address[char_idx + 1:].lower() >- # if not domainpart.endswith(".local"): ## We need to create all the domains. Alternatively set: >- # ucr:directory/manager/web/modules/users/user/properties/mailAlternativeAddress/syntax=emailAddress >- if domainpart not in maildomains: >- maildomains.append(domainpart) >+ address, _, domainpart = address.decode('UTF-8').lower().rpartition('@') >+ # if not domainpart.endswith(".local"): ## We need to create all the domains. Alternatively set: >+ # ucr:directory/manager/web/modules/users/user/properties/mailAlternativeAddress/syntax=emailAddress >+ if domainpart and domainpart not in maildomains: >+ maildomains.append(domainpart) > for maildomain in maildomains: > returncode = run_and_output_to_log(["univention-directory-manager", "mail/domain", "create", "--ignore_exists", "--position", "cn=domain,cn=mail,%s" % self.ucr["ldap/base"], "--set", "name=%s" % maildomain], log.debug) > if returncode != 0:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 53466
: 10752