|
Lines 1698-1710
Link Here
|
| 1698 |
if not self.hasChanged('primaryGroup'): |
1698 |
if not self.hasChanged('primaryGroup'): |
| 1699 |
return |
1699 |
return |
| 1700 |
|
1700 |
|
| 1701 |
searchResult=self.lo.search(base=self['primaryGroup'], attr=['gidNumber']) |
1701 |
searchResult=self.lo.search(base=self['primaryGroup'], scope='base', attr=['gidNumber']) |
| 1702 |
for tmp,number in searchResult: |
1702 |
for tmp,number in searchResult: |
| 1703 |
primaryGroupNumber = number['gidNumber'] |
1703 |
primaryGroupNumber = number['gidNumber'] |
| 1704 |
self.newPrimaryGroupDn=self['primaryGroup'] |
1704 |
self.newPrimaryGroupDn=self['primaryGroup'] |
| 1705 |
|
1705 |
|
| 1706 |
if 'samba' in self.options: |
1706 |
if 'samba' in self.options: |
| 1707 |
searchResult=self.lo.search(base=self['primaryGroup'], attr=['sambaSID']) |
1707 |
searchResult=self.lo.search(base=self['primaryGroup'], scope='base', attr=['sambaSID']) |
| 1708 |
for tmp,number in searchResult: |
1708 |
for tmp,number in searchResult: |
| 1709 |
primaryGroupSambaNumber = number['sambaSID'] |
1709 |
primaryGroupSambaNumber = number['sambaSID'] |
| 1710 |
|
1710 |
|
|
Lines 1771-1782
Link Here
|
| 1771 |
'person', |
1771 |
'person', |
| 1772 |
'ldap_pwd') |
1772 |
'ldap_pwd') |
| 1773 |
|
1773 |
|
| 1774 |
if 'samba' in self.options and not self.lo.search(base=self['primaryGroup'], attr=['sambaSID'])[0][1]: |
1774 |
if 'samba' in self.options and not self.lo.search(base=self['primaryGroup'], scope='base', attr=['sambaSID'])[0][1]: |
| 1775 |
raise univention.admin.uexceptions.primaryGroupWithoutSamba |
1775 |
raise univention.admin.uexceptions.primaryGroupWithoutSamba |
| 1776 |
|
1776 |
|
| 1777 |
if 'posix' in self.options or 'samba' in self.options: |
1777 |
if 'posix' in self.options or 'samba' in self.options: |
| 1778 |
if self['primaryGroup']: |
1778 |
if self['primaryGroup']: |
| 1779 |
searchResult=self.lo.search(base=self['primaryGroup'], attr=['gidNumber']) |
1779 |
searchResult=self.lo.search(base=self['primaryGroup'], scope='base', attr=['gidNumber']) |
| 1780 |
for tmp,number in searchResult: |
1780 |
for tmp,number in searchResult: |
| 1781 |
gidNum = number['gidNumber'][0] |
1781 |
gidNum = number['gidNumber'][0] |
| 1782 |
self.newPrimaryGroupDn=self['primaryGroup'] |
1782 |
self.newPrimaryGroupDn=self['primaryGroup'] |