search for: _updatemax

Displaying 9 results from an estimated 9 matches for "_updatemax".

2015 Apr 09
2
samba member logon.. question.
...D" -lt "10000" ]; then > _NEXTID="10000" > fi > } > # UPDATE msSFU30MaxUidNumber/msSFU30MaxGidNumber > # Input : $1 $2 > # $1: what to update (msSFU30MaxUidNumber or msSFU30MaxGidNumber) > # $2: Next Number > # > # Output : Nothing > _updatemax () { > ATTR="$1" > IDNUM="$2" > if [ -z "${ATTR}" ] || [ -z "${IDNUM}" ]; then > error "Incomplete data supplied." > error "Cannot continue... Exiting." > exit 1 > fi > echo &quot...
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
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 29
4
Scripting the next UID/GID number to use
...> > > - James > > > > > > > > Something like this: > > # UPDATE msSFU30MaxUidNumber/msSFU30MaxGidNumber > # Input : $1 $2 > # $1: what to update (msSFU30MaxUidNumber or msSFU30MaxGidNumber) > # $2: Next Number > # > # Output : Nothing > _updatemax () { > echo "Updating $1" > > newid="dn: CN=$domainNETBios,CN=ypservers,CN=ypServ30,CN=RpcServices,CN=System,$domainDN > changetype: modify > replace: $1 > $1: $2" Actually, you would want to use (something like this, not tested): changetype: modify add: $1...
2015 Apr 09
3
samba member logon.. question.
...ot; >>> fi >>> } >>> # UPDATE msSFU30MaxUidNumber/msSFU30MaxGidNumber >>> # Input : $1 $2 >>> # $1: what to update (msSFU30MaxUidNumber or msSFU30MaxGidNumber) >>> # $2: Next Number >>> # >>> # Output : Nothing >>> _updatemax () { >>> ATTR="$1" >>> IDNUM="$2" >>> if [ -z "${ATTR}" ] || [ -z "${IDNUM}" ]; then >>> error "Incomplete data supplied." >>> error "Cannot continue... Exiting." &gt...
2015 Apr 09
0
samba member logon.. question.
...if [ -z "$_NEXTID" ] || [ "$_NEXTID" -lt "10000" ]; then _NEXTID="10000" fi } # UPDATE msSFU30MaxUidNumber/msSFU30MaxGidNumber # Input : $1 $2 # $1: what to update (msSFU30MaxUidNumber or msSFU30MaxGidNumber) # $2: Next Number # # Output : Nothing _updatemax () { ATTR="$1" IDNUM="$2" if [ -z "${ATTR}" ] || [ -z "${IDNUM}" ]; then error "Incomplete data supplied." error "Cannot continue... Exiting." exit 1 fi echo "Updating ${ATTR}" IDLDIF=&quot...
2015 Apr 09
0
samba member logon.. question.
...;> _NEXTID="10000" >> fi >> } >> # UPDATE msSFU30MaxUidNumber/msSFU30MaxGidNumber >> # Input : $1 $2 >> # $1: what to update (msSFU30MaxUidNumber or msSFU30MaxGidNumber) >> # $2: Next Number >> # >> # Output : Nothing >> _updatemax () { >> ATTR="$1" >> IDNUM="$2" >> if [ -z "${ATTR}" ] || [ -z "${IDNUM}" ]; then >> error "Incomplete data supplied." >> error "Cannot continue... Exiting." >> exit 1...
2015 Apr 09
0
samba member logon.. question.
...>> } >>>> # UPDATE msSFU30MaxUidNumber/msSFU30MaxGidNumber >>>> # Input : $1 $2 >>>> # $1: what to update (msSFU30MaxUidNumber or msSFU30MaxGidNumber) >>>> # $2: Next Number >>>> # >>>> # Output : Nothing >>>> _updatemax () { >>>> ATTR="$1" >>>> IDNUM="$2" >>>> if [ -z "${ATTR}" ] || [ -z "${IDNUM}" ]; then >>>> error "Incomplete data supplied." >>>> error "Cannot conti...
2018 May 29
0
Scripting the next UID/GID number to use
...> > > > > Something like this: > > > > # UPDATE msSFU30MaxUidNumber/msSFU30MaxGidNumber > > # Input : $1 $2 > > # $1: what to update (msSFU30MaxUidNumber or msSFU30MaxGidNumber) > > # $2: Next Number > > # > > # Output : Nothing > > _updatemax () { > > echo "Updating $1" > > > > newid="dn: > > CN=$domainNETBios,CN=ypservers,CN=ypServ30,CN=RpcServices,CN=System,$domainDN > > changetype: modify replace: $1 > > $1: $2" > > Actually, you would want to use (something like this, n...