Displaying 20 results from an estimated 99 matches for "mssfu30maxuidnumber".
2018 Jan 16
3
Avoiding uid conflicts between rfc2307 user/groups and computers
Mandi! Kacper Wirski via samba
In chel di` si favelave...
> I understand the OP, I was asking some time ago similar question, but it was
> in relation to samba domain member.
Thanks, Kacper.
> I couldn't get backend: ad to work for
> machine accounts, so i switched to idmap: rid and it solved everything. I
> tried manually adding UID and GID to Domain Computer group and to
2018 May 29
2
Scripting the next UID/GID number to use
Hello,
I'm developing a script to create a user and pass along all the
necessary unix attributes required. I'm successful except when I go to
increment msSFU30MaxUidNumber or msSFU30MaxGidNumber. I'm not sure how
to use ldbedit to script this process. Any guidance would be great. Thanks.
- James
2018 Jan 17
0
Avoiding uid conflicts between rfc2307 user/groups and computers
...a group a gidNumber, these will
>> > be used instead of the xidNumbers found in idmap.ldb, you do not
>> > need to alter idmap.ldb at all.
>> > The way ADUC works, is by using a couple of attributes, that, by
>> > default Samba AD doesn't have. These are 'msSFU30MaxUidNumber' &
>> > 'msSFU30MaxGidNumber' and they hold the next uidNumber & gidNumber.
>> > They should be in:
>> > dn:
>> > CN=samdom,CN=ypservers,CN=ypServ30,CN=RpcServices,CN=System,DC=samdom,DC=example,DC=com
>> >
>> > Where 'sa...
2015 Apr 09
2
samba member logon.. question.
...u can, well I can :-)
>> Can you share how?
>>
>> Bye
> You are using python, which to me is a very big snake, so I bash it :-D
> I just use these two functions in a bash script:
> # Finds the next useable user uidNumber or group gidNumber
> # Input : $1
> # $1 : msSFU30MaxUidNumber or msSFU30MaxGidNumber
> # Output : the first free uidNumber or gidNumber
> _findnext () {
> ATTR="$1"
> if [ -z "${ATTR}" ]; then
> error "No Attribute supplied"
> error "Cannot continue... Exiting."
> exit 1
&...
2018 May 29
4
Scripting the next UID/GID number to use
...44 -0400
> lingpanda101 via samba <samba at lists.samba.org> wrote:
>
> > Hello,
> >
> > I'm developing a script to create a user and pass along all the
> > necessary unix attributes required. I'm successful except when I go
> > to increment msSFU30MaxUidNumber or msSFU30MaxGidNumber. I'm not sure
> > how to use ldbedit to script this process. Any guidance would be
> > great. Thanks.
> >
> > - James
> >
> >
> >
>
> Something like this:
>
> # UPDATE msSFU30MaxUidNumber/msSFU30MaxGidNumber
>...
2017 Aug 02
1
Bulk add users and rfc2307 attributes questions
...gt; expected.
>
>>
>> 3. Is there an automatic way to have samba-tool assign the correct
>> rfc-2307 uid?
>
> Probably only sat on my HD and this got rejected.
Sorry, I do not understand the above statement.
>
> What you are missing, is a couple of attributes 'msSFU30MaxUidNumber' &
> 'msSFU30MaxGidNumber' (note 'Max' is microsoft for 'next'). These
> should be in 'CN=<your lowercase domain
> name>,CN=ypservers,CN=ypServ30,CN=RpcServices,CN=System,DC=YOUR,DC=DNS,DC=DOMAIN'
So if I understand you, I would do something l...
2020 Nov 03
1
Get last uidNumber
...stem,DC=X
>
> Where <workgroup> is your Netbios domain name (aka workgroup) and DC=X
> is the ldap default naming context e.g. DC=samdom,DC=example,DC=com
>
> Now what isn't there are the two attributes you need to store the next
> uidNumber & gidNumber:
>
> msSFU30MaxUidNumber
> msSFU30MaxGidNumber
>
> Just store the last *idNumber + 1 in each and then write a script around
> 'samba-tool user add' which obtains the required ID number, uses this
> and then updates it upon successful user creation.
>
> Rowland
>
>
>
IDMU seems not...
2018 Jan 15
1
Avoiding uid conflicts between rfc2307 user/groups and computers
...If you give a user a uidNumber, or a group a gidNumber, these will be
> used instead of the xidNumbers found in idmap.ldb, you do not need to
> alter idmap.ldb at all.
> The way ADUC works, is by using a couple of attributes, that, by default
> Samba AD doesn't have. These are 'msSFU30MaxUidNumber' &
> 'msSFU30MaxGidNumber' and they hold the next uidNumber & gidNumber.
> They should be in:
> dn:
> CN=samdom,CN=ypservers,CN=ypServ30,CN=RpcServices,CN=System,DC=samdom,DC=example,DC=com
>
> Where 'samdom' is your lowercase workgroup and
> 'DC...
2015 Apr 09
3
samba member logon.. question.
El 09/04/15 a les 16:20, Rowland Penny ha escrit:
> On 09/04/15 14:58, Luca Olivetti wrote:
>> El 09/04/15 a les 14:57, Andrey Repin ha escrit:
>>>> Using the RFC2307 attributes, you will get the same ID number on every
>>>> Unix machine, whereas if you use the 'rid' backend, whilst you should
>>>> get the same ID on each Unix machine, you will
2018 May 30
1
Scripting the next UID/GID number to use
...you want. I have already implemented something like this :
###############################
# get user rfc2307 attributes #
###############################
# get the new uid #
userUid=$(s4ldbsearch -H $samDatabase -s base -b
CN=$shortDomain,CN=ypservers,CN=ypServ30,CN=RpcServices,CN=System,$baseDN
msSFU30MaxUidNumber | grep 'msSFU30MaxUidNumber:')
if [ -z "$userUid" ]; then
userUid="$baseUid"
else
userUid=$(echo $userUid | sed 's/^msSFU30MaxUidNumber: \(.*\)/\1/')
fi
# get the gid #
strgid=$(wbinfo --group-info="$userClassGroup")
userGid=$(echo $strgid | cut...
2018 May 29
0
Scripting the next UID/GID number to use
...a samba <samba at lists.samba.org> wrote:
> >
> > > Hello,
> > >
> > > I'm developing a script to create a user and pass along all
> > > the necessary unix attributes required. I'm successful except
> > > when I go to increment msSFU30MaxUidNumber or
> > > msSFU30MaxGidNumber. I'm not sure how to use ldbedit to script
> > > this process. Any guidance would be great. Thanks.
> > >
> > > - James
> > >
> > >
> > >
> >
> > Something like this:
> >
> >...
2018 May 30
2
Scripting the next UID/GID number to use
On Wed, 30 May 2018 10:33:55 +0200
Marco Gaiarin via samba <samba at lists.samba.org> wrote:
> Mandi! Rowland Penny via samba
> In chel di` si favelave...
>
> > > So, in AD LDAP lingo, a 'modify' is not atomic, and a 'delete/add'
> > > yes?
>
> Ahem, i meant:
>
> So, in AD LDAP lingo, a 'replace' is not atomic, and a
2015 Apr 09
3
samba member logon.. question.
Greetings, Rowland Penny!
>>> You are using python, which to me is a very big snake, so I bash it :-D
>>> I just use these two functions in a bash script:
>>> # Finds the next useable user uidNumber or group gidNumber
>>> # Input : $1
>>> # $1 : msSFU30MaxUidNumber or msSFU30MaxGidNumber
>>> # Output : the first free uidNumber or gidNumber
>>> _findnext () {
>>> ATTR="$1"
>>> if [ -z "${ATTR}" ]; then
>>> error "No Attribute supplied"
>>> error "Ca...
2016 Aug 08
4
UNIX attribute UID no longer increments with RSAT
Hello,
I'm using rfc2307 to enable Unix attributes on my DC's. Recently
when adding a user and attempting to add a UID with the RSAT, I
receiving the following error.
'Duplicate UID. Assign a uniqueUID.'
How do I list all users and their UID? I tried using 'pdbedit' and
wbinfo. Pdbedit appears to list the XID's and wbinfo needs me to specify
a user name. I
2015 Apr 09
0
samba member logon.. question.
...;
>>> Bye
>> OH yes you can, well I can :-)
> Can you share how?
>
> Bye
You are using python, which to me is a very big snake, so I bash it :-D
I just use these two functions in a bash script:
# Finds the next useable user uidNumber or group gidNumber
# Input : $1
# $1 : msSFU30MaxUidNumber or msSFU30MaxGidNumber
# Output : the first free uidNumber or gidNumber
_findnext () {
ATTR="$1"
if [ -z "${ATTR}" ]; then
error "No Attribute supplied"
error "Cannot continue... Exiting."
exit 1
fi
_NEXTID=$(ldbsearch -H ${LD...
2015 Apr 09
0
samba member logon.. question.
...;> Can you share how?
>>>
>>> Bye
>> You are using python, which to me is a very big snake, so I bash it :-D
>> I just use these two functions in a bash script:
>> # Finds the next useable user uidNumber or group gidNumber
>> # Input : $1
>> # $1 : msSFU30MaxUidNumber or msSFU30MaxGidNumber
>> # Output : the first free uidNumber or gidNumber
>> _findnext () {
>> ATTR="$1"
>> if [ -z "${ATTR}" ]; then
>> error "No Attribute supplied"
>> error "Cannot continue... Exiting...
2015 Apr 09
0
samba member logon.. question.
...nd Penny!
>
>>>> You are using python, which to me is a very big snake, so I bash it :-D
>>>> I just use these two functions in a bash script:
>>>> # Finds the next useable user uidNumber or group gidNumber
>>>> # Input : $1
>>>> # $1 : msSFU30MaxUidNumber or msSFU30MaxGidNumber
>>>> # Output : the first free uidNumber or gidNumber
>>>> _findnext () {
>>>> ATTR="$1"
>>>> if [ -z "${ATTR}" ]; then
>>>> error "No Attribute supplied"
>>>...
2014 Oct 05
2
Is there something similar to ADUC in Samba?
...pulating the ldap tree with a ldapmodify or
directly editing the sam database with ldbedit?
I see in the samba wiki that there is
https://wiki.samba.org/index.php/Using_RFC2307_on_a_Samba_DC that says
ADUC can be used from Windows but I couldn't find anything comparable in
Samba that would use msSFU30MaxUidNumber msSFU30MaxGidNumber or
configures most of the NIS Entries.
2018 Nov 19
4
getenv does not return any AD DOMAIN users or groups - ?nsswitch is not setup for Samba?
...# If you setup a new Samba AD and want to use a different start value, you will need to add the counting attributes before using ADUC for the first time:
# ldbedit -H /usr/local/samba/private/sam.ldb -b \
CN=samdom,CN=ypservers,CN=ypServ30,CN=RpcServices,CN=System,DC=samdom,DC=example,DC=com
# msSFU30MaxUidNumber: 10000
# msSFU30MaxGidNumber: 10000
# With the same command you can change the values. E. g. if you require to start UID numbers at 20000 and GIDs at 50000, adapt the values to your requirements:
# msSFU30MaxUidNumber: 20000
# msSFU30MaxGidNumber: 50000
I don't seem to find an "ldb"...
2017 Aug 02
2
Bulk add users and rfc2307 attributes questions
Hi,
I am currently testing a self compiled 4.7.0rc3 AD DC and a samba member server
acting as a file server. I have them configured to use rfc2307 attributes
so that the samba users can access the shares on the member server. Everything
seems to be working as expected.
The problem I am facing is I need to add about 150 users. Once the initial
load of users is added I want to use the rsat tools