Rowland penny
2016-Mar-01 13:02 UTC
[Samba] Segmentation Fault when trying to set root samba password, IPA as a backend
On 29/02/16 15:44, Rowland penny wrote:> On 29/02/16 15:11, Martin Juhl wrote: >> Ok >> >> Please post the link for the bug report.. >> >> Thanks... >> >> >> >> ----- Original meddelelse ----- >> Fra: "Rowland penny" <rpenny at samba.org> >> Til: "samba" <samba at lists.samba.org> >> Sendt: mandag, 29. februar 2016 16:02:38 >> Emne: Re: [Samba] Segmentation Fault when trying to set root samba >> password, IPA as a backend >> >> On 29/02/16 14:57, Martin Juhl wrote: >>> Hi >>> >>> Please notice that i'm not using ldapsam, but ipasam... from freeipa >>> server... So I think I need those things in my configuration file.... >> Never heard of ipasam (not that means anything) so I will bow to your >> superior knowledge. >> >>> I'm having trouble finding documentation on the ipasam extension.... >> You will probably have to ask on the ipa mailing list (if there is one) >> about ipa docs. >> >>> Seems as though our problems are similiar >> Very probably, I am going to file a bug report anyway. >> >> Rowland >> >>> >>> ----- Original meddelelse ----- >>> Fra: "Rowland penny" <rpenny at samba.org> >>> Til: "samba" <samba at lists.samba.org> >>> Sendt: mandag, 29. februar 2016 15:16:13 >>> Emne: Re: [Samba] Segmentation Fault when trying to set root samba >>> password, IPA as a backend >>> >>> On 29/02/16 13:44, Martin Juhl wrote: >>>> Hi >>>> >>>> >>>>>> First thing is, you shouldn't have a user called 'root' in your >>>>>> domain, >>>> I know, was just saying that the error message changed when I added >>>> the user.... >>>> >>>>>> use a usermap to map 'Administrator' to 'root' >>>> I have now tried adding: >>>> >>>> username map = /var/lib/samba/usermap.txt >>>> >>>> to my [global] >>>> >>>> and /var/lib/samba/usermap.txt: >>>> >>>> mj = Adminstrator >>>> >>>> >>>>>> Can you try and create a new user with smbpasswd ? >>>> [root at bart samba]# smbpasswd -a test >>>> No builtin backend found, trying to load plugin >>>> Module 'ipasam' loaded >>>> smbldap_open_connection: connection opened >>>> ldap_connect_system: successful connection to the LDAP server >>>> pdb_init_ipasam: support for pdb_enum_upn_suffixes enabled for >>>> domain bolls.lan >>>> New SMB password: >>>> Retype new SMB password: >>>> Could not find user test and no add script defined >>>> Failed to add entry for user test. >>>> >>>> >>>>>> I think you may be hitting the same problem that I have, >>>>>> smbpasswd will >>>>>> create the user, but then segfaults when trying to add the password. >> > > OK, bug report 11760 filed > > Rowland >I was advised that the problem had been fixed in samba-master and to a certain extent it has, you can now create a user and the password is added, but the command still ends with a segfault. Not sure if this really matters, but I have updated the bug report. Rowland
Garming Sam
2016-Mar-01 21:35 UTC
[Samba] Segmentation Fault when trying to set root samba password, IPA as a backend
Hi Rowland, This new segfault seems unrelated to the previous one. It's probably something like a double free, which typically shouldn't be that hard to fix. If you try running the tool under valgrind, it should provide enough information to fix the issue. Cheers, Garming On 02/03/16 02:02, Rowland penny wrote:> On 29/02/16 15:44, Rowland penny wrote: >> On 29/02/16 15:11, Martin Juhl wrote: >>> Ok >>> >>> Please post the link for the bug report.. >>> >>> Thanks... >>> >>> >>> >>> ----- Original meddelelse ----- >>> Fra: "Rowland penny" <rpenny at samba.org> >>> Til: "samba" <samba at lists.samba.org> >>> Sendt: mandag, 29. februar 2016 16:02:38 >>> Emne: Re: [Samba] Segmentation Fault when trying to set root samba >>> password, IPA as a backend >>> >>> On 29/02/16 14:57, Martin Juhl wrote: >>>> Hi >>>> >>>> Please notice that i'm not using ldapsam, but ipasam... from >>>> freeipa server... So I think I need those things in my >>>> configuration file.... >>> Never heard of ipasam (not that means anything) so I will bow to your >>> superior knowledge. >>> >>>> I'm having trouble finding documentation on the ipasam extension.... >>> You will probably have to ask on the ipa mailing list (if there is one) >>> about ipa docs. >>> >>>> Seems as though our problems are similiar >>> Very probably, I am going to file a bug report anyway. >>> >>> Rowland >>> >>>> >>>> ----- Original meddelelse ----- >>>> Fra: "Rowland penny" <rpenny at samba.org> >>>> Til: "samba" <samba at lists.samba.org> >>>> Sendt: mandag, 29. februar 2016 15:16:13 >>>> Emne: Re: [Samba] Segmentation Fault when trying to set root samba >>>> password, IPA as a backend >>>> >>>> On 29/02/16 13:44, Martin Juhl wrote: >>>>> Hi >>>>> >>>>> >>>>>>> First thing is, you shouldn't have a user called 'root' in your >>>>>>> domain, >>>>> I know, was just saying that the error message changed when I >>>>> added the user.... >>>>> >>>>>>> use a usermap to map 'Administrator' to 'root' >>>>> I have now tried adding: >>>>> >>>>> username map = /var/lib/samba/usermap.txt >>>>> >>>>> to my [global] >>>>> >>>>> and /var/lib/samba/usermap.txt: >>>>> >>>>> mj = Adminstrator >>>>> >>>>> >>>>>>> Can you try and create a new user with smbpasswd ? >>>>> [root at bart samba]# smbpasswd -a test >>>>> No builtin backend found, trying to load plugin >>>>> Module 'ipasam' loaded >>>>> smbldap_open_connection: connection opened >>>>> ldap_connect_system: successful connection to the LDAP server >>>>> pdb_init_ipasam: support for pdb_enum_upn_suffixes enabled for >>>>> domain bolls.lan >>>>> New SMB password: >>>>> Retype new SMB password: >>>>> Could not find user test and no add script defined >>>>> Failed to add entry for user test. >>>>> >>>>> >>>>>>> I think you may be hitting the same problem that I have, >>>>>>> smbpasswd will >>>>>>> create the user, but then segfaults when trying to add the >>>>>>> password. >>> >> >> OK, bug report 11760 filed >> >> Rowland >> > > I was advised that the problem had been fixed in samba-master and to a > certain extent it has, you can now create a user and the password is > added, but the command still ends with a segfault. Not sure if this > really matters, but I have updated the bug report. > > Rowland > >
Rowland penny
2016-Mar-01 22:11 UTC
[Samba] Segmentation Fault when trying to set root samba password, IPA as a backend
On 01/03/16 21:35, Garming Sam wrote:> Hi Rowland, > > This new segfault seems unrelated to the previous one. It's probably > something like a double free, which typically shouldn't be that hard to > fix. If you try running the tool under valgrind, it should provide > enough information to fix the issue. > > > Cheers, > > Garming >Who or what is 'valgrind' ? I know what a 'valvegrinder' is, but I don't think you mean this :-D Or to put it another way, How? I am quite prepared to try and get the required info, but somebody else is going to have to write the 'C' code. Rowland
Jeremy Allison
2016-Mar-02 00:42 UTC
[Samba] Segmentation Fault when trying to set root samba password, IPA as a backend
On Tue, Mar 01, 2016 at 01:02:03PM +0000, Rowland penny wrote:> > I was advised that the problem had been fixed in samba-master and to > a certain extent it has, you can now create a user and the password > is added, but the command still ends with a segfault. Not sure if > this really matters, but I have updated the bug report.Yes it matters :-). We'll fix it...
Possibly Parallel Threads
- Segmentation Fault when trying to set root samba password, IPA as a backend
- Segmentation Fault when trying to set root samba password, IPA as a backend
- [samba4] crash of winbind after "ls -l /usr/local/samba/var/locks/sysvol"
- Bug on PAM_Winbind ?
- Segmentation Fault when trying to set root samba password, IPA as a backend