similar to: belongs_to + create_* = rails vs. console behavior difference = confused Pepe

Displaying 20 results from an estimated 800 matches similar to: "belongs_to + create_* = rails vs. console behavior difference = confused Pepe"

2007 Oct 02
2
Requires from other modules / requires with aliases
Hi everyone, I''ve been working on a module for bacula, and I''m having a problem requiring resources I''ve defined in other modules. At the moment, I have the following (simplified): /etc/puppet/modules/bacula/manifests/init.pp: class bacula { ... define configure ( $gui="true", $db_password ) { ... postgresql::create_db {
2004 Feb 19
0
Windbindd restarts and lost uids
We have a problem with our setup that exposed another problem in winbindd. Setup: Samba 3.0.1, openLDAP 1.2.23 for idmap backend using port 1389, security=ads (w2k). All works after we get the daemons started successfully. The first issue has to do with the initial setup of both a Samba server [smbd, nmbd, winbindd, slapd], and a Samba client [just nmbd and winbindd]. We do the
2009 Oct 29
1
[PATCH] Enables users to migrate virtual machines between hosts.
Users select a virtual machine on their current libvirt host. They then select a target machine, which must have been previously configured as a connection. They confirm the migration and then it runs. Signed-off-by: Darryl L. Pierce <dpierce at redhat.com> --- nodeadmin/addhost.py | 10 ++++- nodeadmin/libvirtworker.py | 6 +++ nodeadmin/migratedomain.py | 81
2008 Mar 17
4
RSpec''ing model association callbacks
Hi all, i''m learning rspec and i must admit i really love it. But at the time i started learning it, i already developed my models classes and their callbacks. Now i''m trying to get a 100% coverage of my code but i cannot reach it because i do not understand how to spec my callbacks. Look at this for example: ----------------- User Model class User < ActiveRecord::Base
2005 May 06
1
idmap_sid_to_uid is not get called?
Hi I have the following question: Joining Win200x as ADS/DOMAIN, I see no problems for windows users to get authenticated even if they don't have local accounts. However, with the same samba (3.06) joining NT4 SP6 domain I see that only users that also have entry in /etc/passwd are been authenticated. I followed winbindd traces and saw that there is no problem communicating with
2006 Jul 25
5
webrick server slow or does not connect
hi, In login_controller.rb when I do the fallowing code it works fine before_filter :authorize, :except => :login but I want to do the fallowing when creating the user so the authorization is not checked before_filter :authorize, :except => :login, :except => :create_user but when I do this webrick server appear to be slow or not connected and take lot of time to load? Could someone
2007 Dec 11
3
Transactional/Rollback problems
I''m having a rollback problem with rspec trunk. It doesn''t seem like rollbacks are happening quite as often as they should be. It appears as though the rollbacks are *NOT* occurring on the first description block in a file, but are for the rest. Here is a set of specs that are failing: require File.dirname(__FILE__) + "/../spec_helper" describe
2023 Apr 07
2
python module
I am looking for the python-samba module. I would like to add/disable/modify AD accounts using python running on a linux machine. ChatGPT suggested the python-samba module. Sample code as follows: from samba.credentials import Credentials from samba.netcmd.user import create as create_user from samba.netcmd.user import setpassword as set_user_password ... I am running Debuan bullseye and I can
2007 Sep 23
4
Story Runner, autoincrementing
I''ve written a story and I run into a snag. I''ve written the create_forum method and told it to set the id to 1 but when it creates the forum the id is autoincremented. My forums table is empty but the id keeps incrementing the newest record on creation. When I run the story it comes out as something like 59 which fails my story because I''m asking it to look at /forums/1
2008 Mar 20
5
sharing story steps
Hi, How can I have a common set of steps that all my stories share? i.e. My stories often start out looking like this: Given a user Joe Given a user Jordan then: Given("a user $username") do |username| @users ||= {} @user_sessions ||= {} @users[username] = create_user(:username => username) @user_sessions[username] = login_as(@users[username]) end I want to share that
2008 Jan 04
2
Nested Routes + Facebook Resources
Does anyone have nested routes working with the facebook_resources method? My routes.rb has: map.facebook_resources :users do |users| users.facebook_resources :images users.facebook_resources :connections end but user_connections_url won''t generate. "rake routes" gives me: new_user POST /users/new {:action=>"new",
2004 Feb 21
0
Domain member help
Greetings, I'm new to Samba and I'm wondering where I went wrong.... My setup: Two FreeBSD 5.1 machines Samba 3.0.1r2 from ports collection One tdbsam domain controller and one member server - domcon and memsrv My problem: I've been working on this for a few days and still scratching my head. I can view the base directory of the member server (only as root). But when I try to
2023 Apr 07
1
python module
On 07/04/2023 20:20, David Bear via samba wrote: > I am looking for the python-samba module. I would like to > add/disable/modify AD accounts using python running on a linux machine. > ChatGPT suggested the python-samba module. Sample code as follows: > > from samba.credentials import Credentials > from samba.netcmd.user import create as create_user > from samba.netcmd.user
2004 Jul 15
1
Samba 3.0.2 on HPUX 11i with winbind; Get_Pwnam_internals didn't find user + NT_STATUS_NO_SUCH_USER
Hey, I've troubles with a samba-installation ( version 3.0.2, HP-CIFS-Technologie Preview ) on HPUX 11i. I want to setup a fileserver within a customerenvironment connecting into a windows 2000 domain, which contains a lot of trusted domains. I have joined the domain already and wbinfo brings me the list of users and groups. Also within the winbind_imap.tdb I see some entrys which seems to
2007 Oct 14
1
Story Runner: DRYing items used in many stories
The number of stories I have is growing and I''m writing the following step long hand in each story. Given ''a user named'', ''Andy'', ''Watts'' do |first_name, family_name| @email = first_name + ''@test.lan'' create_user( :first_name => first_name, :family_name => family_name, :email => @email )
2005 Sep 29
1
winbindd_create_user: Refusing to create user that already exists
This is driving me nuts, I see many people have posted similar questions but have yet to see a reply HAS ANYONE any idea why I am getting this? 2005/09/29 15:01:18, 5] nsswitch/winbindd_pam.c:winbindd_pam_auth_crap(612) NTLM CRAP authentication for user [DOM]\[user] returned NT_STATUS_OK (PAM: 0) [2005/09/29 15:01:18, 3] nsswitch/winbindd_acct.c:winbindd_create_user(880) [1617926]:
2005 May 08
2
Samba / AD / Winbind issues
List members, I have an issue that I hope one of you can help me with ... I have set up a AD ( 2003 ) as PDC and a RHE3 AS server running Samba V3.0.6-2.3E following the instructions in the HOW-TO- By example. Here is what I have at the moment .. I had no problems adding the RH server to the Domain and I have Winbind set up in the nsswitch.conf file for passwd, group and hosts I
2009 Sep 23
2
[PATCH node] Introduces the virtual network administration functions.
Moved the node administration elements to a separate submenu. Created a new network administration menu. * users can define a network * users can create a network * users can destroy a network * users can undefine a network * users can list existing networks, including details Each new command is also available as a separate command line executable as well. Signed-off-by: Darryl L. Pierce
2009 Oct 21
1
[PATCH node] Renamed files and menu items for node administration:
define domain -> add virtual machine (addvm) undefine domain -> remove virtual machine (rmvm) create domain -> start virtual machine (startvm) destroy domain -> stop virtual machine (stopvm) list domains -> list virtual machiens (listvms) Signed-off-by: Darryl L. Pierce <dpierce at redhat.com> --- Makefile.am | 8 +- nodeadmin/adddomain.py |
2023 Apr 07
1
python module
Thanks Rowland. I really appreciate your rapid responses and many years of work helping the python community. To answer your question, I could wrap samba tool -- but I thought it would be easier -- and more pythonic to keep the code pure python. As for what chatgpt knows... for the curious I'll paste the relevant responses below. Chat did suggest making calls to the samba-tool. I thought