For the stupid amongst us i.e. me ;-)
What bug are you referring to ?
What are the steps before '1.' ?
Rowland
This happens when im creating a "Scheduled task" ,
this task needs NT AUTHORITY\System but you need to select the account,
when you select the account a sid/rid mapping is done and this fails.
Resulting in the windows event id and error code.
While searching for that i found that i cant type the username.
You must select it.
To reproduce.
Create a GPO :
Computer Configuration> Preferences> Control Panel Settings> Scheduled Tasks. Right click in the blank pane and select New> Scheduled Task (Windows Vista and later).
Tab General, klik on Change user or Group.
Now go through step 1-5.
I found some related bug to NT Authority\system mis match.
https://bugzilla.samba.org/show_bug.cgi?id=11677
https://bugzilla.samba.org/show_bug.cgi?id=11997
all are : sid s-1-5-18 SID: S-1-5-19 related.
There are more.
I went through.
https://technet.microsoft.com/en-us/library/dn617202(v=ws.11).aspx
https://technet.microsoft.com/en-us/library/dn579255(v=ws.11).aspx
https://msdn.microsoft.com/en-us/library/windows/desktop/aa379649(v=vs.85).aspx
And i also did see that a patch was done, but i cant find/see
if this is the correct fix. ( found here : https://attachments.samba.org/attachment.cgi?id=11781
I was waiting for 4.5.2 to update my environment and hoping this is fixed.
It is still expected at 7 dec.
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-...@lists.samba.org] Namens Rowland Penny via
> samba
> Verzonden: donderdag 1 december 2016 12:05
> Aan: sa...@lists.samba.org
> Onderwerp: Re: [Samba] workaround needed for Security Principals, and
> SID's mapping bug.
Hello Louis,
I'd check the mappings for the SID's in idmap.ldb: Are you sure you hit
an mapping issue here? These only occure once you hit the filesystem on
the linux side.
achim~
Am 02.12.2016 um 01:47 schrieb Achim Gottinger via samba:
>
>
> Am 01.12.2016 um 13:35 schrieb L.P.H. van Belle via samba:
>> Hai Rowland,
>>
>> This happens when im creating a "Scheduled task" ,
>> this task needs NT AUTHORITY\System but you need to select the account,
>> when you select the account a sid/rid mapping is done and this fails.
>> Resulting in the windows event id and error code.
>> While searching for that i found that i cant type the username.
>> You must select it.
>>
>> To
Tried this and it behaves the same way here. The builtin\SYSTEM account
shows up as DOMAINNAME\SYSTEM.
But to run as the lokal SYSTEM account I think you must pick the Server
as search base and then choose the system account. Here this leads to an
fault and exit of the gpo manangement editor.
Am 02.12.2016 um 02:08 schrieb Achim Gottinger via samba:
>
>
> Am 02.12.2016 um 01:47 schrieb Achim Gottinger via samba:
>>
>>
>> Am 01.12.2016 um 13:35 schrieb L.P.H. van Belle via samba:
>>> Hai Rowland,
>>>
>>> This happens when im creating a "Scheduled task" ,
>>> this task needs NT AUTHORITY\System but you need to select the account,
>>> when you select the account a sid/rid mapping is done and this fails.
>>> Resulting in the windows event id and error code.
>>> While searching for that i found that i cant type the username.
>>> You must select it.
>>>
>>> To
> Tried this and it behaves the same way here. The builtin\SYSTEM
> account shows up as DOMAINNAME\SYSTEM.
>
> But to run as the lokal SYSTEM account I think you must pick the
> Server as search base and then choose the system account. Here this
> leads to an fault and exit of the gpo manangement editor.
>
Here i can typ in the username. If that does not work for you you can
edit the SchedTask.xml (or similar) file in the gpo folder direct.
Here, typing the username results in the windows event and errors out.
Did a lot of research and im 100% this is and missing mapping.
Typing does not works, i dont know if this is a windows thing or a samba thing. But i found several reports where in a windows 7+ with Server 2008 also errors if you type the username.
And thanks you for having a look..
you too Rowland.
Which version samba are you gues running atm?
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-...@lists.samba.org] Namens Achim Gottinger
> via samba
> Verzonden: vrijdag 2 december 2016 3:05
> Aan: sa...@lists.samba.org
> Onderwerp: Re: [Samba] workaround needed for Security Principals, and
> SID's mapping bug.
>
>
>
Yes im more then 100% sure.
https://bugzilla.samba.org/show_bug.cgi?id=11677 is related
https://bugzilla.samba.org/show_bug.cgi?id=11997 is related
Which is your bug report ;-)
https://bugzilla.samba.org/show_bug.cgi?id=12284 maybe related.
https://bugzilla.samba.org/show_bug.cgi?id=12155 maybe related
https://bugzilla.samba.org/show_bug.cgi?id=12164 confirms this bug.
Im setting up and 4.5.1 for jessie now and check again.
But i dont beleave is fully fixed yet.
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-...@lists.samba.org] Namens Achim Gottinger
> via samba
> Verzonden: vrijdag 2 december 2016 1:47
> Aan: sa...@lists.samba.org
> Onderwerp: Re: [Samba] workaround needed for Security Principals, and
> SID's mapping bug.
>
>
>
I tested against a server running debian wheezy with sernet's samba
package version 4.2.
Using Windows 7 as an client I can edit the username field.
Have you tried editing the runAs tag in the corresponding xml file
SchedTask.xml or similar in the sysvol policy folder?
On a sidenote if i create an task direct (not via gpo) i can select
local system account and the builtin\system account. Both show up as
nt-authority\system (localized).
And yes, i can create a local also, that how i detected the sid/rid/id mapping problems.
But i cant go create 100 task localy, thats why i have GPO.
Greet,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-...@lists.samba.org] Namens Achim Gottinger
> via samba
> Verzonden: vrijdag 2 december 2016 10:54
The exact event from windows.
Eventlog info:
Source : Group Policy Scheduled Tasks.
ID : 4098
USER : SYSTEM
Error code : Group Policy object did not apply because it failed with error code '0x80070534 No mapping between account names and security IDs was done.' This error was suppressed.
So I'll wait until this bug is fixed.
I tried to read the code but thats way more difficult then what i can program. :-((
I'll put this on hold for now, and do it the ugly way,
bit anoying for my users but its what it is.
Thanks for all the support.
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-...@lists.samba.org] Namens L.P.H. van Belle
> via samba
> Verzonden: vrijdag 2 december 2016 11:01
Am 02.12.2016 um 11:35 schrieb L.P.H. van Belle via samba:
> Editing the xml.. results in same error. ( which is logical )
>
> The exact event from windows.
>
> Eventlog info:
> Source : Group Policy Scheduled Tasks.
> ID : 4098
> USER : SYSTEM
>
> Error code : Group Policy object did not apply because it failed with error code '0x80070534 No mapping between account names and security IDs was done.' This error was suppressed.
>
> So I'll wait until this bug is fixed.
>
> I tried to read the code but thats way more difficult then what i can program. :-((
>
> I'll put this on hold for now, and do it the ugly way,
> bit anoying for my users but its what it is.
>
> Thanks for all the support.
>
> Greetz,
>
> Louis
>
>
What did you use as runAs?
Found this similar issue
http://www.rozmazat.cz/articles/2015/05/07/no-mapping-between-account-names-and-security-ids-was-done.html
BUILTIN\SYSTEM
NT AUTORITY\SYSTEM
.\SYSTEM
SYSTEM
This policy must run as "computer" not user.
So i've set :
Run whether user is logged on or not.
(x) do not store password.
But for now, im leaving it.
I'll think over it this weekend.
Maybe i'll create a new system like user for it.
May thanks for thinking with me.
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-...@lists.samba.org] Namens Achim Gottinger
> via samba
> Verzonden: vrijdag 2 december 2016 15:36
> Aan: sa...@lists.samba.org
> Onderwerp: Re: [Samba] workaround needed for Security Principals, and
> SID's mapping bug.
>
>
>
MS-DTYP
https://msdn.microsoft.com/en-us/library/cc980032.aspx
NT AUTHORITY\SYSTEM S-1-5-18
NT AUTHORITY\authenticated users S-1-5-11
Etc etc.
Monday i'll have a look again.
Have a nice weeken everybody.
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-...@lists.samba.org] Namens Achim Gottinger
> via samba
> Verzonden: vrijdag 2 december 2016 15:42
> Aan: sa...@lists.samba.org
> Onderwerp: Re: [Samba] workaround needed for Security Principals, and
> SID's mapping bug.
>
> No, i believe that guy is wrong.
>
> MS-DTYP
> https://msdn.microsoft.com/en-us/library/cc980032.aspx
>
> NT AUTHORITY\SYSTEM S-1-5-18
> NT AUTHORITY\authenticated users S-1-5-11
> Etc etc.
>
> Monday i'll have a look again.
>
> Have a nice weeken everybody.
>
> Greetz,
>
> Louis
>
>
There may be something in what the guy is saying, he is saying that
'SYSTEM' was being treated as a group and if you check in idmap.ldb
'S-1-5-18' is 'ID_TYPE_BOTH'. I wonder if changing this to
'ID_TYPE_UID' would have any affect ?
Rowland