Displaying 3 results from an estimated 3 matches for "get_next_id".
Did you mean:
get_next_oid
2006 May 15
8
set_table_name and self.table_name
...nd return a value. I''m hoping to put this in the base
ActiveRecord method so I would like to reference the table name with
self.table_name or something...
class Contacts < ActiveRecord::Base
set_table_name "contact_person"
set_primary_key "p_key"
def get_next_id
ActiveRecord::Base.connection.execute("update
#{self.table_name}_seq SET id = id+1")
res = ActiveRecord::Base.connection.select_value("SELECT * FROM
#{self.table_name}_seq");
res[''id'']
end
def before_create
self.id = get_...
2009 Dec 26
0
Problem using smbldap-groupadd / net group add
...samba/jaunty uptodate 2:3.3.2-1ubuntu3.2
smbldap-tools/jaunty uptodate 0.9.4-1
First of all, smbldap-groupadd don't use the sambaNextRid to create a
group, it compute it. Is this a normal way ?
I've patch smbldap-groupadd to do this :
- #$group_rid = 2*$_groupGidNumber+1001;
+ $group_rid=get_next_id($config{groupsdn},"sambaNextRID");
But that doesn't work :((
Here is the long story
I can add a group using the command : sudo /usr/sbin/smbldap-groupadd -a
titii
Everything is fine : sambaSID in group is Ok (RID=1022) and sambaNextRID
is updated in the data base (RID=1023)
Now tr...
2005 Aug 12
4
Adding machine to domain fails - check permissions? (ldap)
Dear list,
Whe i trying to add a machine to the domain(ldap/pdc) i get the
following error:
> Error: modifications require authentication at
> /usr/share/perl5/smbldap_tools.pm line 891, <DATA> line 283.
> [2005/08/11 16:46:54, 0]
> rpc_server/srv_samr_nt.c:_samr_create_user(2324)
> _samr_create_user: Running the command `/usr/sbin/smbldap-useradd -w
>